fix: Join extra hosts list into single string

This commit is contained in:
Giulio De Pasquale (aider) 2025-06-05 12:58:08 +01:00
parent c2d96e936e
commit 2af3952cf5

View File

@ -121,11 +121,11 @@ in
}) })
cfg.hosts; cfg.hosts;
networking.extraHosts = lib.flatten (lib.mapAttrsToList networking.extraHosts = lib.concatStringsSep "\n" (lib.flatten (lib.mapAttrsToList
(domain: hostConf: (domain: hostConf:
lib.optionals hostConf.resolveLocally "127.0.0.1 ${domain}" lib.optionals hostConf.resolveLocally "127.0.0.1 ${domain}"
) )
cfg.hosts cfg.hosts
); ));
}; };
} }