diff options
| author | tv <tv@krebsco.de> | 2026-12-02 16:29:44 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-02 18:02:30 +0000 |
| commit | 905696c76f1a8828f9c422955a494516dd8bddfa (patch) | |
| tree | 692a41a09367c8a29abf54ebc5fc279c5e12f978 /krops.nix | |
| parent | 272c4de2efe5b4a6c159d7c7007f28b88ec612b3 (diff) | |
krops.nix: deliver enstate submissions to enstate.providersDir
Its directory for providers, as the host's configuration names it, on a
ramfs that is never written to swap, instead of /run/enstate/krops.
Diffstat (limited to 'krops.nix')
| -rw-r--r-- | krops.nix | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -77,11 +77,12 @@ let }) (builtins.filter (item: item != "") (lib.splitString "," checkouts))); - # hrm, as this host has it: its package set, and the host's enstate - # source lists, as evaluated here (none for a minimal host, which has no - # enstate options). + # hrm, as this host has it: its package set, the host's configuration, + # and its enstate source lists, as evaluated here (none for a minimal + # host, which has no enstate options). local = import ./. {}; - sourceLists = local.legacy.nixosConfigurations.${name}.config.enstate.sourceLists or {}; + hostConfig = local.legacy.nixosConfigurations.${name}.config; + sourceLists = hostConfig.enstate.sourceLists or {}; # A source pinned in sources.json, fetched with git. gitSource = source: let @@ -174,12 +175,13 @@ rec { # Delivering the host's enstate submissions: each channel's, from the # host's enstate.sourceLists as this host evaluates them, gets packed - # here, goes to the target's memory, next to enstate's views, and from - # there to enstate's incoming directory. What went last stays there, so - # populate sends only what changed. + # here, goes to enstate's directory for providers on the target, in + # memory that is never written to swap, and from there to enstate's + # incoming directory. What went last stays there, so populate sends only + # what changed. enstateSteps = let target' = lib.mkTarget target; - run = "/run/enstate/krops"; + run = "${hostConfig.enstate.providersDir}/krops"; pending = "${run}/pending"; stateDir = "/var/lib/enstate"; # Sources the host's slots name by location. |
