Administration modules
👑 darkone.admin.nix
Section titled “👑 darkone.admin.nix”NixOS configuration for the local LAN administrator computer.
A harmonia on the farm would share its build results, but harmonia serves the
whole /nix/store and cannot express “only what I compiled”: it captures
traffic the public cache should answer. Offloading is a build-scheduling
concern, not a substitution one — hence buildMachines here and a last-resort
substituter priority in service/nix-cache.nix.
- enable
boolEnable NIX configuration builder tools - enableNh
boolEnable nix helper (nh) management tool - remoteBuilders.enable
boolOffload builds to the fleet hosts flaggedbuild-farminconfig.yaml. Inert while no host carries the flag. - remoteBuilders.maxJobs
intParallel build slots to use on each farm. - remoteBuilders.speedFactor
intRelative speed rating of a farm, compared to this host. - remoteBuilders.mandatoryFeatures
listOf strFeatures a derivation MUST require for a farm to be offered it. This is what keeps small derivations off a remote (possibly slow) link. An empty list sends every eligible derivation to the farm. - remoteBuilders.supportedFeatures
listOf strSystem features a farm can provide. - remoteBuilders.systems
listOf strPlatforms a farm builds for. Explicit rather than derived:hosts.nixonly carries an architecture when it differs from the default.
darkone.admin.nix = { enable = false; enableNh = false; remoteBuilders.enable = true; remoteBuilders.maxJobs = 8; remoteBuilders.speedFactor = 2; remoteBuilders.mandatoryFeatures = [ ]; remoteBuilders.supportedFeatures = [ ]; remoteBuilders.systems = [ ];};