nixos/ntpd: automagically use pool instead of server (#451296)

This commit is contained in:
Franz Pletz
2025-10-12 23:34:35 +00:00
committed by GitHub

View File

@@ -23,7 +23,11 @@ let
restrict 127.0.0.1
restrict -6 ::1
${toString (map (server: "server " + server + " iburst\n") cfg.servers)}
${toString (
map (
server: "${if lib.strings.hasInfix "pool" server then "pool" else "server"} " + server + " iburst\n"
) cfg.servers
)}
${cfg.extraConfig}
'';