syncthing folders: add watch & ignorePerms options
This commit is contained in:
parent
84d0489583
commit
0bb9321d1b
|
@ -15,6 +15,9 @@ let
|
||||||
id = folder.path;
|
id = folder.path;
|
||||||
devices = map (peer: { deviceId = cfg.peers.${peer}.id; }) folder.peers;
|
devices = map (peer: { deviceId = cfg.peers.${peer}.id; }) folder.peers;
|
||||||
rescanIntervalS = folder.rescanInterval;
|
rescanIntervalS = folder.rescanInterval;
|
||||||
|
fsWatcherEnabled = folder.watch;
|
||||||
|
fsWatcherDelayS = folder.watchDelay;
|
||||||
|
ignorePerms = folder.ignorePerms;
|
||||||
}) cfg.folders;
|
}) cfg.folders;
|
||||||
|
|
||||||
getApiKey = pkgs.writeDash "getAPIKey" ''
|
getApiKey = pkgs.writeDash "getAPIKey" ''
|
||||||
|
@ -100,6 +103,21 @@ in
|
||||||
default = "sendreceive";
|
default = "sendreceive";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watch = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
watchDelay = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
default = 10;
|
||||||
|
};
|
||||||
|
|
||||||
|
ignorePerms = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user