👑 darkone.admin.fleet-update
Fleet update tool (fleet-update) and its unattended daily run.
enable installs the tool on a deployment host; just fleet-update then
runs it. timer.enable adds a daily fleet-update --no-ui run: flake
update, build, test by waves, switch.
Options
Section titled “Options”-
enable
boolfleet-update, the fleet update and deployment tool -
package
packageThe fleet-update package. Itsnix-eval-jobsis matched to the system Nix: the tool evaluates the consumer flake with it. -
aiPackages
listOf packageAI tools reachable from the unattended run (--ai-model). Optional: the tool warns and goes on without AI when none is found.Not a dependency of the package, because
pkgs.claude-codeis unfree and would forceallowUnfreeon every consumer.pkgs.opencodeis MIT. -
aiContext
nullOr strOperator guidance (language, style) included in every AI prompt of a run on this host,just fleet-updateand the timer alike. Written to/etc/fleet-update/ai-context, even withoutenable: in co-development the recipe runs the sources.--ai-context, on the command line or intimer.extraArgs, overrides it. -
user
nullOr strAccount running the unattended update: owner ofworkDir, holding the git identity, the sops age key and the AI and Matrix credentials. -
workDir
strConsumer workspace on disk. Not theworkDirmodule argument, which is its copy in the nix store. -
timer.enable
boolthe daily unattended run (fleet-update --no-ui) -
timer.onCalendar
strWhen the run starts (systemdOnCalendar). -
timer.extraArgs
listOf strOptions passed after--no-ui, which the module always sets. -
timer.timeout
strLongest run before systemd stops it (TimeoutStartSec). A hung run would otherwise hold the lock, and every later run would exit4without any alert.
darkone.admin.fleet-update = { enable = false; package = pkgs.fleet-update.override { nix-eval-jobs = nixEvalJobs; }; aiPackages = [ ]; aiContext = "Answer in French and keep the response concise."; user = "admin"; workDir = "/etc/nixos"; timer.enable = false; timer.onCalendar = "*-*-* 04:00"; timer.extraArgs = [ ]; timer.timeout = "6h";};Source: modules/admin/fleet-update.nix 🡕