fix: Join extra hosts list into single string
This commit is contained in:
parent
c2d96e936e
commit
2af3952cf5
@ -121,11 +121,11 @@ in
|
||||
})
|
||||
cfg.hosts;
|
||||
|
||||
networking.extraHosts = lib.flatten (lib.mapAttrsToList
|
||||
networking.extraHosts = lib.concatStringsSep "\n" (lib.flatten (lib.mapAttrsToList
|
||||
(domain: hostConf:
|
||||
lib.optionals hostConf.resolveLocally "127.0.0.1 ${domain}"
|
||||
)
|
||||
cfg.hosts
|
||||
);
|
||||
));
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user