nixos/chrony: keep in foreground

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2019-02-23 09:04:26 -06:00
parent b8bda8cb4f
commit 5a1ae55bbc

View File

@ -24,7 +24,7 @@ let
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
chronyFlags = "-m -u chrony -f ${configFile} ${toString cfg.extraFlags}"; chronyFlags = "-n -m -u chrony -f ${configFile} ${toString cfg.extraFlags}";
in in
{ {
options = { options = {
@ -116,7 +116,7 @@ in
unitConfig.ConditionCapability = "CAP_SYS_TIME"; unitConfig.ConditionCapability = "CAP_SYS_TIME";
serviceConfig = serviceConfig =
{ Type = "forking"; { Type = "simple";
ExecStart = "${pkgs.chrony}/bin/chronyd ${chronyFlags}"; ExecStart = "${pkgs.chrony}/bin/chronyd ${chronyFlags}";
ProtectHome = "yes"; ProtectHome = "yes";