mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
fix: allow using distributed-config to alter self
(skipped promtail secret)
This commit is contained in:
parent
dea87afdbc
commit
a092a5a846
1 changed files with 3 additions and 3 deletions
|
@ -34,9 +34,9 @@ in {
|
|||
};
|
||||
|
||||
config = let
|
||||
isColmenaNode = elem nodeName (attrNames colmenaNodes);
|
||||
otherNodes = filter (n: n != nodeName) (attrNames colmenaNodes);
|
||||
foreignConfigs = concatMap (n: colmenaNodes.${n}.config.nodes.${nodeName} or []) otherNodes;
|
||||
allNodes = attrNames colmenaNodes;
|
||||
isColmenaNode = elem nodeName allNodes;
|
||||
foreignConfigs = concatMap (n: colmenaNodes.${n}.config.nodes.${nodeName} or []) allNodes;
|
||||
toplevelAttrs = ["age" "proxiedDomains" "networking" "systemd" "services"];
|
||||
in
|
||||
optionalAttrs isColmenaNode (mergeToplevelConfigs toplevelAttrs (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue