Installation
Installing on the target machine
Boot the target machine from NixOS
ISO
and run the following command:
sudo nixos-generate-config
Prepare host configuration based on
the generated /etc/nixos/hardware-configuration.nix
file.
Put it in hosts/$HOST
directory in the repository,
where $HOST
is the name of the host device of your choice.
When you are ready, commit the changes to the repository.
Put the age
private keys on the target machine either in ~/.config/sops/age/keys.txt
or somewhere else with SOPS_AGE_KEY_FILE
environment variable set.
The installation script will copy the keys to persistent storage.
Change the HOST variable to the name of the host configuration you want to install and run:
sudo nix --experimental-features 'nix-command flakes' run "github:spietras/systems#${HOST}-install-script"
and then reboot the machine.