diff options
author | lassulus <lassulus@lassul.us> | 2020-09-16 08:14:04 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-09-16 08:14:04 +0200 |
commit | 88a9183d1d36424977b0cd8ed513109433b779b2 (patch) | |
tree | ef6d0f6d13271a1200b90d900872f918f740575c /krebs/3modules/hosts.nix | |
parent | 0bf738e43701940a9eb1348d74c4c416c55bd9f3 (diff) | |
parent | e97cf417fc05b382830d226ffaa04665ffb6e48a (diff) |
Merge remote-tracking branch 'mic92/master'
Diffstat (limited to 'krebs/3modules/hosts.nix')
-rw-r--r-- | krebs/3modules/hosts.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/krebs/3modules/hosts.nix b/krebs/3modules/hosts.nix index 159b54e34..ae0136303 100644 --- a/krebs/3modules/hosts.nix +++ b/krebs/3modules/hosts.nix @@ -48,7 +48,9 @@ in { hostNetAliases = host: mapAttrs (_: net: filter (x: x.name != null && x.value != []) [ { name = net.ip4.addr or null; value = net.aliases; } + { name = net.ip4.addr or null; value = (map (alias: "4.${alias}") net.aliases); } { name = net.ip6.addr or null; value = net.aliases; } + { name = net.ip6.addr or null; value = (map (alias: "6.${alias}") net.aliases); } ]) host.nets; # netAliases : { ${netname} : [addrAliases] } |