nixos/chrony: use pool option for pool server
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user