nixos/networking: fix extraHosts generation
Check / Nix flake (push) Failing after 9s
Lint / Nix expressions (push) Failing after 11s

This commit is contained in:
2026-05-04 01:05:32 -04:00
parent d728327a5c
commit c1ca4fa5e5
+6 -13
View File
@@ -99,22 +99,15 @@ in
extraHosts = extraHosts =
let let
subdomains = [ subdomains = [ "git" ];
""
".git" inherit (config.networking) fqdn;
]; hosts = [ fqdn ] ++ map (sub: "${sub}.${fqdn}") subdomains;
in in
builtins.foldl' ( lib.concatMapStrings (host: ''
hosts-acc: domain-prefix:
let
host = "${domain-prefix}${config.networking.fqdn}";
in
hosts-acc
+ ''
127.0.0.1 ${host} 127.0.0.1 ${host}
::1 ${host} ::1 ${host}
'' '') hosts;
) "" subdomains;
}; };
virtualisation.podman.enable = true; virtualisation.podman.enable = true;