Consolidate fleet boilerplate and refine module boundaries #276
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#276
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context & Problem
Several configuration boundaries across the fleet exhibit DRY violations or non-idiomatic patterns:
lena,vega,lyra, andchaosall declare identicalsops.secrets."nix-remote-builder/<host>-private-key"andnixosConfig.novaRemoteBuildersettings.hostMapinsidemodules/networking/nebula.nixAND explicitly repeated in each host configuration (nixosConfig.nebula.overlayIp = ...).flake.nixunconditionally includesplasma-managerinhome-manager.sharedModulesfor all hosts, forcing headless servers (Vega, Lyra) to evaluate it and triggering rebuilds inauto-update-policy.nix.extraSpecialArgs:flake.nixpassesprimaryUser,isServer,flakeRepo,userEmail, andhostNameto Home Manager viaextraSpecialArgs, when NixOS-integrated Home Manager modules already receiveosConfig.home/nimmo.nixis an unused compatibility stub thatflake.nixbypasses.Scope
flake.nixmodules/common/nova-remote-builder.nixmodules/networking/nebula.nixlib/auto-update-policy.nixhome/users/nimmo/home/nimmo.nixImplementation Checklist
nova-remote-builder.nixautomatically declare the host's sops secret and defaultsshKeyFilebased onconfig.networking.hostName. Remove the repeated 15-line boilerplate fromlena,vega,lyra, andchaos.nixosConfig.nebula.overlayIpdefault tohostMap.${config.networking.hostName}so hosts only neednixosConfig.nebula.enable = true.plasma-manager.homeModules.plasma-managerto desktop hosts inflake.nix(or desktop home-manager imports) rather thansharedModuleson all hosts; updateauto-update-policy.nixaccordingly.osConfigdirectly, cleaning up redundantextraSpecialArgsinflake.nix.home/nimmo.nix.Completion Criteria
Completed in PR #288 (merged to
maininc8bebbf).sshKeyFiledefault inmodules/common/nova-remote-builder.nix, removing repetitive boilerplate fromlena,vega,lyra, andchaos.nixosConfig.nebula.overlayIptohostMap.${hostname}inmodules/networking/nebula.nix, removing duplicate declarations fromelectra,lena,lyra,vega, andchaos.plasma-managerinflake.nixviasharedModulesfor non-server hosts, while keepinghome/users/nimmo/plasma.nixin standard generator shape to ensure compatibility withjust plasma-capture. Updatedlib/auto-update-policy.nix.nixosConfig.host.isServeroption and refactored Home Manager modules to accessosConfigdirectly, cleaning up redundantextraSpecialArgs.home/nimmo.nix.nix flake check, full dry-run toplevel builds across all hosts, and full regression test suites. Automated review returned "Ready to merge".