summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@xerxes.r>2019-07-15 18:26:30 +0200
committerlassulus <lass@xerxes.r>2019-07-15 18:26:30 +0200
commit9bc7f594f5a084ec7f87005cd13d337b0b79cd75 (patch)
treec0518a95129751c5f2bb416f2dbc7e8040c48e8b
parent035cf33ab9dba52adda38f16e90d76dcda448e9a (diff)
syncthing: run preStart as root on 19.09
-rw-r--r--krebs/3modules/syncthing.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/krebs/3modules/syncthing.nix b/krebs/3modules/syncthing.nix
index 939c8fddf..799ed7eda 100644
--- a/krebs/3modules/syncthing.nix
+++ b/krebs/3modules/syncthing.nix
@@ -176,6 +176,7 @@ in
config = mkIf kcfg.enable {
systemd.services.syncthing = mkIf (kcfg.cert != null || kcfg.key != null) {
+ serviceConfig.PermissionsStartOnly = mkDefault true;
preStart = ''
${optionalString (kcfg.cert != null) ''
cp ${toString kcfg.cert} ${scfg.configDir}/cert.pem