Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

authored by Franz Pletz and committed by GitHub fe58ad99 5348edc4

Changed files
+5 -1
nixos
modules
services
networking
ntp
+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 '';