NixOS Dotfiles
The content below is somewhat outdated.
Installation
Download nixos minimal, put it on a thumb drive:
sudo dd if=nixos-minimal.iso of=/dev/sdx status=progress
Once booted onto the thumb drive, you'll want to figure out which disk you are formatting:
lsblk
Now, for full disk encryption:
cryptsetup luksFormat /dev/DISK
cryptsetup luksOpen /dev/DISK nixosroot
mkfs.ext4 /dev/mapper/nixosroot
Now we mount our partition:
mount /dev/mapper/nixosroot /mnt
mkdir /mnt/boot
mount /dev/BOOTDISK /mnt/boot
Generate NixOS config:
nixos-generate-config --root /mnt
Setup networking: https://nixos.org/nixos/manual/index.html#sec-installation-booting-networking
To install these dotfiles:
cd /mnt/etc/nixos
nix-env -iA nixos.git
git clone git@github.com:aaronjanse/nixos
To finally install:
nixos-install