cluster/services/incandescence: add base layout for ascensions
This commit is contained in:
parent
d8d1ece5ec
commit
6082b222a8
1 changed files with 10 additions and 0 deletions
|
@ -125,4 +125,14 @@ in
|
||||||
wantedBy = [ "incandescence-${provider}.target" ];
|
wantedBy = [ "incandescence-${provider}.target" ];
|
||||||
after = [ "incandescence-${provider}.target" ];
|
after = [ "incandescence-${provider}.target" ];
|
||||||
}) (filterAttrs (_: providerConfig: providerConfig.locksmith) cfg.providers);
|
}) (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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue