Collection of system configs for my machines.
- Configure a basic
test
VM with flake - Build
test
VM locally (ref: Setting up qemu VM using nix flakes)nixos-rebuild build-vm --flake .#test QEMU_NET_OPTS="hostfwd=tcp::2221-:22" result/bin/run-nixos-vm # VM will run in the terminal where you started it, but you can also SSH in: ssh -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no admin@localhost -p 2221 # Once done, hit CTRL+a,x to shut down VM
- Build
test
VM locally - Build
test
VM in GHA - Wire secrets into the repo (ref blog post)
- Set up
kipos-secrets
non-public repo to hold SOPS yaml (ref sops-nix for basic getting-started info) - Generate
kipos-secrets
Deploy Key pair (public key goes intokipos-secrets
settings, private key goes intokipos
secret) - Update
kipos
GHA to load private Deploy Key from secret into ssh-agent - Reference
kipos-secrets
as an input to flake - Wire dummy secrets into
hello.nix
test
- Set up
- Auto-update flake via GHA
- See if disko works with tests
- Clean up
hello.nix
Other people's configs...