From 9217023ead1f7bafed010a5bc9d1c335542630a4 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 12 Aug 2024 01:48:00 +0200 Subject: [PATCH] cluster/services/incandescence: add base layout for ascensions --- cluster/services/incandescence/provider.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cluster/services/incandescence/provider.nix b/cluster/services/incandescence/provider.nix index b3fa989..3e005d0 100644 --- a/cluster/services/incandescence/provider.nix +++ b/cluster/services/incandescence/provider.nix @@ -125,4 +125,14 @@ in wantedBy = [ "incandescence-${provider}.target" ]; after = [ "incandescence-${provider}.target" ]; }) (filterAttrs (_: providerConfig: providerConfig.locksmith) cfg.providers); + + system.ascensions = mapAttrs' (provider: providerConfig: { + name = "incandescence-${provider}"; + value = { + distributed = true; + requiredBy = map (formula: "ignite-${provider}-${formula}-create.service") (lib.attrNames providerConfig.formulae); + before = map (formula: "ignite-${provider}-${formula}-create.service") (lib.attrNames providerConfig.formulae); + incantations = lib.mkDefault (i: []); + }; + }) cfg.providers; }