sync-containers: allow syncthing to enter /var/lib/containers

This commit is contained in:
lassulus 2021-01-24 16:58:22 +01:00
parent 5fe4e57a62
commit cf63e2c3ad

View File

@ -92,6 +92,10 @@ in {
config = mkIf (cfg.containers != {}) {
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}}" ({
devices = ctr.peers;