nixos/chrony: fix misplaced ConditionCapability= directive
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
808f05808b
commit
4594b18070
@ -113,6 +113,7 @@ in
|
|||||||
chown chrony:chrony ${stateDir} ${keyFile}
|
chown chrony:chrony ${stateDir} ${keyFile}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
unitConfig.ConditionCapability = "CAP_SYS_TIME";
|
||||||
serviceConfig =
|
serviceConfig =
|
||||||
{ Type = "forking";
|
{ Type = "forking";
|
||||||
ExecStart = "${pkgs.chrony}/bin/chronyd ${chronyFlags}";
|
ExecStart = "${pkgs.chrony}/bin/chronyd ${chronyFlags}";
|
||||||
@ -121,8 +122,8 @@ in
|
|||||||
ProtectSystem = "full";
|
ProtectSystem = "full";
|
||||||
PrivateTmp = "yes";
|
PrivateTmp = "yes";
|
||||||
|
|
||||||
ConditionCapability = "CAP_SYS_TIME";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user