From 4594b18070a6dab57a815e8ecc500b8a25c3f5a8 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 2 Dec 2018 20:14:48 -0600 Subject: [PATCH] nixos/chrony: fix misplaced ConditionCapability= directive Signed-off-by: Austin Seipp --- nixos/modules/services/networking/chrony.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/chrony.nix b/nixos/modules/services/networking/chrony.nix index 89ab899a1edb..77f702577000 100644 --- a/nixos/modules/services/networking/chrony.nix +++ b/nixos/modules/services/networking/chrony.nix @@ -113,6 +113,7 @@ in chown chrony:chrony ${stateDir} ${keyFile} ''; + unitConfig.ConditionCapability = "CAP_SYS_TIME"; serviceConfig = { Type = "forking"; ExecStart = "${pkgs.chrony}/bin/chronyd ${chronyFlags}"; @@ -121,8 +122,8 @@ in ProtectSystem = "full"; PrivateTmp = "yes"; - ConditionCapability = "CAP_SYS_TIME"; }; + }; }; }