summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--krops.nix18
1 files 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.