mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 16:39:07 +01:00
Pass allHosts as a special arg to the host configs
This commit is contained in:
parent
cb4c268550
commit
f27479b861
7 changed files with 16 additions and 11 deletions
|
|
@ -2,6 +2,7 @@
|
|||
config,
|
||||
self,
|
||||
lib,
|
||||
allHosts,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -27,7 +28,7 @@ in
|
|||
netCfg.nodes
|
||||
|> lib.map (node: "\"${node.hostName}.${node.overlay.domain}. A ${node.overlay.address}\"");
|
||||
serviceRecords =
|
||||
self.allHosts
|
||||
allHosts
|
||||
|> lib.attrValues
|
||||
|> lib.concatMap (
|
||||
host:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue