From 905696c76f1a8828f9c422955a494516dd8bddfa Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 2 Dec 2026 16:29:44 +0000 Subject: 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. --- krops.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/krops.nix b/krops.nix index c4f4975b..7223d8f7 100644 --- a/krops.nix +++ b/krops.nix @@ -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. -- cgit v1.3.1