- Boot on the ISO
- Get the IP of the server and make sure ssh via root works
- Run bootstrap with the correct parameter
./bootstrap.sh --host <host> --ip <ip>- Commit the sops changes
- Your vm should be reachable normally now
To rebuild after changes have made it to the repo use:
sudo nixos-rebuild switch --flake github:jocelynthode/nixos-confignix develop
# Then create file
sops hosts/common/secrets.yaml# Add result to .sops.yaml
ssh-to-age -i /persist/etc/ssh/ssh_host_ed25519_key.pub
sops updatekeys secrets/**/*.yamlTo Build the custom iso run the following commands:
nix build .#nixosConfigurations.iso.config.system.build.isoImage
dd if=result/iso/*.iso of=/dev/sdX status=progress
sync
