forked from Bos55/nix-config
1.4 KiB
1.4 KiB
NixOS CI/CD Deployment — Tasks
Planning
- Explore repository structure and existing CI workflow
- Confirm deploy-rs activation internals (
switchvstestvsboot) - Write comprehensive implementation plan
- User review and approval of plan
Networking & IP Refactor
- Create
modules/common/networking.nixwithhomelab.networking.hostIp - Update all host configs to use the new
hostIpoption - Update
deploy.nodesto usehostIpinstead oftargetHostin deploy user module
Flake & deploy-rs Refinement
- Review Nixpkgs #73404 status (is
cd /tmpstill needed?) - Refactor
flake.nixto useflake-utils-pluspassthrough (removing//) - Review
user = "root"vssshUser = "deploy"logic
Security & Trust (Refinement)
- Add "Supply Chain Attacks" section to
SECURITY.md - Document project assumptions in
SECURITY.md
Local testing (Fixes)
- Debug and fix
test/vm-test.nixexit error - Verify test passes in WSL
CI Workflows
- Update
build.ymlwith dynamic host matrix +nix flake check - Create
deploy.yml(main → switch, test-* → test activation) - Create
check.yml(deployChecks + eval validation) - Configure Forgejo secrets (DEPLOY_SSH_KEY)
Deferred (separate branches)
- Binary cache (Harmonia) — module, nix-cache config, signing keys
- Monitoring — NixOS generation exporter, node exporter per host