Collection of system configs for my machines.
- Configure a basic
testVM with flake - Build
testVM 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
testVM locally - Build
testVM in GHA - Wire secrets into the repo (ref blog post)
- Set up
kipos-secretsnon-public repo to hold SOPS yaml (ref sops-nix for basic getting-started info) - Generate
kipos-secretsDeploy Key pair (public key goes intokipos-secretssettings, private key goes intokipossecret) - Update
kiposGHA to load private Deploy Key from secret into ssh-agent - Reference
kipos-secretsas an input to flake - Wire dummy secrets into
hello.nixtest
- Set up
- Auto-update flake via GHA
- See if disko works with tests
- Clean up
hello.nix
- Pull in old config
- Simplify config:
- No VLANs to start
- Single subnet
- DNS / DHCP
- NAT for basics
- Set up secrets
- Re-image machine, add deploy key to CI
- SSH config for remote builds
- Simple WiFi network
- Wireguard
- Observability
- Logging
- Metrics
- pmacct or ntopng
Other people's configs...