[NixOS] Fix perms issues with syncthing
This commit is contained in:
parent
487aae9a58
commit
149de8faae
@ -29,6 +29,12 @@ makeEnable config "modules.syncthing" true {
|
|||||||
mkdir -p /var/lib/syncthing/railbird
|
mkdir -p /var/lib/syncthing/railbird
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
systemd.services.syncthing = {
|
||||||
|
serviceConfig = {
|
||||||
|
AmbientCapabilities = "CAP_CHOWN";
|
||||||
|
CapabilityBoundingSet = "CAP_CHOWN";
|
||||||
|
};
|
||||||
|
};
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@ -37,11 +43,13 @@ makeEnable config "modules.syncthing" true {
|
|||||||
sync = {
|
sync = {
|
||||||
path = "~/sync";
|
path = "~/sync";
|
||||||
devices = allDevices;
|
devices = allDevices;
|
||||||
|
ignorePerms = true;
|
||||||
copyOwnershipFromParent = true;
|
copyOwnershipFromParent = true;
|
||||||
};
|
};
|
||||||
railbird = {
|
railbird = {
|
||||||
path = "~/railbird";
|
path = "~/railbird";
|
||||||
devices = allDevices;
|
devices = allDevices;
|
||||||
|
ignorePerms = true;
|
||||||
copyOwnershipFromParent = true;
|
copyOwnershipFromParent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user