sync-containers: allow syncthing to enter /var/lib/containers
This commit is contained in:
parent
5fe4e57a62
commit
cf63e2c3ad
@ -92,6 +92,10 @@ in {
|
|||||||
|
|
||||||
config = mkIf (cfg.containers != {}) {
|
config = mkIf (cfg.containers != {}) {
|
||||||
programs.fuse.userAllowOther = true;
|
programs.fuse.userAllowOther = true;
|
||||||
|
# allow syncthing to enter /var/lib/containers
|
||||||
|
system.activationScripts.syncthing-home = ''
|
||||||
|
${pkgs.coreutils}/bin/chmod a+x /var/lib/containers
|
||||||
|
'';
|
||||||
|
|
||||||
services.syncthing.declarative.folders = (mapAttrs' (_: ctr: nameValuePair "${(paths ctr.name).${ctr.format}}" ({
|
services.syncthing.declarative.folders = (mapAttrs' (_: ctr: nameValuePair "${(paths ctr.name).${ctr.format}}" ({
|
||||||
devices = ctr.peers;
|
devices = ctr.peers;
|
||||||
|
Loading…
Reference in New Issue
Block a user