sync-containers module: make chmod failsafe

This commit is contained in:
lassulus 2021-10-24 18:27:58 +02:00
parent 4fa8f74fc0
commit 6e61a2d9fc

View File

@ -94,7 +94,7 @@ in {
programs.fuse.userAllowOther = true; programs.fuse.userAllowOther = true;
# allow syncthing to enter /var/lib/containers # allow syncthing to enter /var/lib/containers
system.activationScripts.containers-enter = mkDefault '' system.activationScripts.containers-enter = mkDefault ''
${pkgs.coreutils}/bin/chmod a+x /var/lib/containers ${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}}" ({