+5
-1
nixos/modules/services/networking/ntp/ntpd.nix
+5
-1
nixos/modules/services/networking/ntp/ntpd.nix
···
23
23
restrict 127.0.0.1
24
24
restrict -6 ::1
25
25
26
-
${toString (map (server: "server " + server + " iburst\n") cfg.servers)}
26
+
${toString (
27
+
map (
28
+
server: "${if lib.strings.hasInfix "pool" server then "pool" else "server"} " + server + " iburst\n"
29
+
) cfg.servers
30
+
)}
27
31
28
32
${cfg.extraConfig}
29
33
'';