summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2018-12-02 20:14:48 -0600
committerAustin Seipp <aseipp@pobox.com>2018-12-02 20:32:47 -0600
commit4594b18070a6dab57a815e8ecc500b8a25c3f5a8 (patch)
tree3df44117617256cbb98cf8b649aa378f99c2efba /nixos
parent808f05808b40c9092a54cfab7799c13cdb8a5db5 (diff)
downloadnixpkgs-4594b18070a6dab57a815e8ecc500b8a25c3f5a8.tar
nixpkgs-4594b18070a6dab57a815e8ecc500b8a25c3f5a8.tar.gz
nixpkgs-4594b18070a6dab57a815e8ecc500b8a25c3f5a8.tar.bz2
nixpkgs-4594b18070a6dab57a815e8ecc500b8a25c3f5a8.tar.lz
nixpkgs-4594b18070a6dab57a815e8ecc500b8a25c3f5a8.tar.xz
nixpkgs-4594b18070a6dab57a815e8ecc500b8a25c3f5a8.tar.zst
nixpkgs-4594b18070a6dab57a815e8ecc500b8a25c3f5a8.zip
nixos/chrony: fix misplaced ConditionCapability= directive
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/chrony.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/chrony.nix b/nixos/modules/services/networking/chrony.nix
index 89ab899a1ed..77f70257700 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";
           };
+
       };
   };
 }