don't ask chrony to drop privs, it needs libpcap

This commit is contained in:
Daniel Barlow
2025-10-08 18:39:04 +01:00
parent 9f64eabeb4
commit cacde953cb
2 changed files with 2 additions and 1 deletions

View File

@@ -107,6 +107,7 @@ rec {
};
services.ntp = svc.ntp.build {
user = "root";
pools = {
"pool.ntp.org" = [ "iburst" ];
};

View File

@@ -14,7 +14,7 @@ let
(mapAttrsToList (name: opts: "server ${name} ${concatStringsSep "" opts}") p.servers)
++ (mapAttrsToList (name: opts: "pool ${name} ${concatStringsSep "" opts}") p.pools)
++ (mapAttrsToList (name: opts: "peer ${name} ${concatStringsSep "" opts}") p.peers)
++ lib.optional (p.user != null) "user ${p.user}"
++ lib.optional (p.user != "root") "user ${p.user}"
++ (lib.optional (
p.makestep != null
) "makestep ${toString p.makestep.threshold} ${toString p.makestep.limit}")