diff --git a/README.md b/README.md index ec7052be..571ddf75 100644 --- a/README.md +++ b/README.md @@ -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 ```