Provisioning NixOS machine
| created | 2026-05-30 10:55 |
| modified | 2026-05-30 20:44 |
| tags | nix |
| status | start |
Fresh NixOS install
Install NixOS from live USB to get minimal working Nix build.
After rebooting:
# clone config
# if no git: nix-shell -p git
git clone git@github.com:garado/auriga
# regenerate hardware config
nixos-generate-config --show-hardware-config > ~/auriga/hosts/archaea
# rebuild
cd auriga
sudo nixos-rebuild switch --flake .#archaea
Machine runs Nix, but config is borked
chroot and rebuild:
# mount filesys
mount /dev/... /mnt
mount /dev/... /mnt/boot
nixos-enter --root /mnt # god i love nix
# activate build, queueing it to run on next launch
# (these steps are a little fuzzy and i ran into errors; this might not work next try?)
sudo nixos-rebuild boot -I nixos-config=/etc/nixos/configuration.nix
# reboot and pray it works
sudo reboot now