improve install instructions
This commit is contained in:
parent
5e7a3237b1
commit
b4c95788c5
1 changed files with 4 additions and 5 deletions
|
@ -56,12 +56,12 @@ remote (sata):
|
|||
```bash
|
||||
mkfs.fat -F 32 -n boot /dev/sda1
|
||||
mkfs.btrfs -L nixos /dev/mapper/crypt
|
||||
sleep 1
|
||||
cryptsetup luksClose crypt
|
||||
cryptsetup luksOpen /dev/sda2 crypt
|
||||
mount /dev/disk/by-label/nixos /mnt
|
||||
mkdir -p /mnt/boot
|
||||
mount /dev/disk/by-label/boot /mnt/boot
|
||||
nixos-generate-config --root /mnt
|
||||
nixos-install
|
||||
```
|
||||
|
||||
remote (nvme):
|
||||
|
@ -69,14 +69,12 @@ remote (nvme):
|
|||
```bash
|
||||
mkfs.fat -F 32 -n boot /dev/nvme0n1p1
|
||||
mkfs.btrfs -L nixos /dev/mapper/crypt
|
||||
sleep 1
|
||||
cryptsetup luksClose crypt
|
||||
cryptsetup luksOpen /dev/nvme0n1p2 crypt
|
||||
mount /dev/disk/by-label/nixos /mnt
|
||||
mkdir -p /mnt/boot
|
||||
mount /dev/disk/by-label/boot /mnt/boot
|
||||
nixos-generate-config --root /mnt
|
||||
nixos-install
|
||||
```
|
||||
|
||||
local:
|
||||
|
@ -91,8 +89,9 @@ remote:
|
|||
```bash
|
||||
mkdir -p /mnt/home/cyryl/dev/dotfiles/
|
||||
tar -xvf /tmp/dotfiles.tar.gz -C /mnt/home/cyryl/dev/dotfiles
|
||||
cp /mnt/etc/nixos/hardware-configuration.nix /mnt/home/cyryl/dev/dotfiles/nixos/boxes/hostname/
|
||||
# merge /mnt/etc/nixos/hardware-configuration.nix into /mnt/home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/
|
||||
nix-shell -p nixUnstable git
|
||||
cd /mnt/home/cyryl/dev/dotfiles/
|
||||
nixos-install --flake '.#bootstrap'
|
||||
reboot
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue