Skip to content

Commit

Permalink
nixos/chrony: fix misplaced ConditionCapability= directive
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Seipp <aseipp@pobox.com>
  • Loading branch information
thoughtpolice committed Dec 3, 2018
1 parent 808f058 commit 4594b18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/services/networking/chrony.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ in
chown chrony:chrony ${stateDir} ${keyFile}
'';

unitConfig.ConditionCapability = "CAP_SYS_TIME";
serviceConfig =
{ Type = "forking";
ExecStart = "${pkgs.chrony}/bin/chronyd ${chronyFlags}";
Expand All @@ -121,8 +122,8 @@ in
ProtectSystem = "full";
PrivateTmp = "yes";

ConditionCapability = "CAP_SYS_TIME";
};

};
};
}

0 comments on commit 4594b18

Please sign in to comment.