summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-24 16:58:22 +0100
committerlassulus <lassulus@lassul.us>2021-01-24 16:58:22 +0100
commitcf63e2c3ad3b0a780b7a595c9e34de3559808834 (patch)
tree8cd9204846638e584e12e7237fdd8f4583f1a217 /krebs
parent5fe4e57a620abd3bed8e1ad4e7158439e4e075e1 (diff)
sync-containers: allow syncthing to enter /var/lib/containers
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/sync-containers.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/krebs/3modules/sync-containers.nix b/krebs/3modules/sync-containers.nix
index 7c7db4c3d..d31022d3a 100644
--- a/krebs/3modules/sync-containers.nix
+++ b/krebs/3modules/sync-containers.nix
@@ -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;