New Host Guide#
- Create the definition in the flake
- Load the minimal installer on the target
- (optional) enable ssh by setting a password
- format the disks using disko
nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- -m destroy,format,mount -f <FLAKEREF> cd /mntnixos-install --flake <FLAKEREF>ssh-keygen -f /mnt/etc/ssh/ssh_host_ed25519_keycat /mnt/etc/ssh/ssh_host_ed25519_key.pub | nix --experimental-features "nix-command flakes" run nixpkgs#ssh-to-age- Add the age key to secrets.yaml using
update-hosts - Push the updated secrets
nixos-install --flake <FLAKEREF>again- reboot and pray