nixos/networking: filter out empty entries
This commit is contained in:
parent
ad13d64afd
commit
4a405d8995
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ in
|
|||
oneToString = set: ip: ip + " " + concatStringsSep " " set.${ip};
|
||||
allToString = set: concatMapStringsSep "\n" (oneToString set) (attrNames set);
|
||||
in ''
|
||||
${allToString cfg.hosts}
|
||||
${allToString (filterAttrs (_: v: v != []) cfg.hosts)}
|
||||
${cfg.extraHosts}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue