summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-03-23 16:04:01 +0100
committerlassulus <lassulus@lassul.us>2019-03-23 16:04:01 +0100
commit0bb9321d1b979f64703c22fa6c25a46776da50af (patch)
treed95bf93e634477da10f8415f37a4c01c8e78bae5 /krebs
parent84d0489583e2ee8a299d066e57e28f899c23c3d5 (diff)
syncthing folders: add watch & ignorePerms options
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/syncthing.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/krebs/3modules/syncthing.nix b/krebs/3modules/syncthing.nix
index 389da81d4..485dd3991 100644
--- a/krebs/3modules/syncthing.nix
+++ b/krebs/3modules/syncthing.nix
@@ -15,6 +15,9 @@ let
id = folder.path;
devices = map (peer: { deviceId = cfg.peers.${peer}.id; }) folder.peers;
rescanIntervalS = folder.rescanInterval;
+ fsWatcherEnabled = folder.watch;
+ fsWatcherDelayS = folder.watchDelay;
+ ignorePerms = folder.ignorePerms;
}) cfg.folders;
getApiKey = pkgs.writeDash "getAPIKey" ''
@@ -100,6 +103,21 @@ in
default = "sendreceive";
};
+ watch = mkOption {
+ type = types.bool;
+ default = true;
+ };
+
+ watchDelay = mkOption {
+ type = types.int;
+ default = 10;
+ };
+
+ ignorePerms = mkOption {
+ type = types.bool;
+ default = true;
+ };
+
};
}));
};