Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active November 2, 2020 03:29
Show Gist options
  • Save cleverca22/b38833fc71b8f265902f730e3269a08e to your computer and use it in GitHub Desktop.
Save cleverca22/b38833fc71b8f265902f730e3269a08e to your computer and use it in GitHub Desktop.
export root=/home/nixos/mnt/128gbsd/fsroot
mount -v /dev/mapper/crypt -o subvol=root $root
mount -v /dev/sda1 $root/boot
cryptsetup open /dev/sda2 crypt
mount -v /dev/mapper/crypt -o subvol=nix $root/nix
mount -v /dev/mapper/crypt -o subvol=home $root/home
mount -v /dev/mapper/crypt -o subvol=persist $root/persist
nixos-generate-config --root $root
nixos-install --root $root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment