l sync-containers: fix permissions

This commit is contained in:
lassulus 2021-01-04 12:16:14 +01:00
parent 1cbdacb254
commit 480a2e15c0

View File

@ -97,9 +97,10 @@ in {
})) cfg.containers); })) cfg.containers);
krebs.permown = (mapAttrs' (_: ctr: nameValuePair "${(paths ctr.name).${ctr.format}}" ({ krebs.permown = (mapAttrs' (_: ctr: nameValuePair "${(paths ctr.name).${ctr.format}}" ({
owner = "root"; file-mode = "u+rw";
group = "syncthing"; directory-mode = "u+rwx";
umask = "0007"; owner = "syncthing";
keepGoing = false;
})) cfg.containers); })) cfg.containers);
systemd.services = mapAttrs' (n: ctr: nameValuePair "containers@${ctr.name}" ({ systemd.services = mapAttrs' (n: ctr: nameValuePair "containers@${ctr.name}" ({