nixos/chrony: keep in foreground

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp
2019-09-12 11:45:51 -05:00
parent b8bda8cb4f
commit 5a1ae55bbc
@@ -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";