nixos/chrony: use pool option for pool server

This commit is contained in:
ccicnce113424
2026-02-08 13:00:48 +08:00
parent 8584d7ec31
commit eb9f97786b
@@ -16,7 +16,12 @@ let
configFile = pkgs.writeText "chrony.conf" ''
${lib.concatMapStringsSep "\n" (
server: "server " + server + " " + cfg.serverOption + lib.optionalString (cfg.enableNTS) " nts"
server:
(if lib.strings.hasInfix "pool" server then "pool " else "server ")
+ server
+ " "
+ cfg.serverOption
+ lib.optionalString (cfg.enableNTS) " nts"
) cfg.servers}
${lib.optionalString (