diff --git a/nixos/modules/services/networking/ntp/ntpd.nix b/nixos/modules/services/networking/ntp/ntpd.nix index 071512056bf6..71c98e4cecf9 100644 --- a/nixos/modules/services/networking/ntp/ntpd.nix +++ b/nixos/modules/services/networking/ntp/ntpd.nix @@ -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} '';