You'll need a valid Nix installation. This repo defines a Nix shell, run just
for a list of commands.
- Boot the NixOS ISO
- Prepare BTRFS partitions with a flat layout (see
machines/*/hardware-configuration.nix
and the NixOS wiki), mount under/mnt
- Run
nixos-generate-config --root /mnt
and make some adjustments if needed (network, GUI, ...) - Run
nixos-install
- Reboot and clone this repo, add a new folder under
machines/you-new-machine
, merge generated configs - Run
just rebuild