diff --git a/modules/syncthing.nix b/modules/syncthing.nix index 063f6d3..d22a2d8 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -111,6 +111,14 @@ in ignorePerms = true; versioning = commonVersioning; }; + }) + // (lib.optionalAttrs (lib.elem "NSFW" cfg.enabledFolders) { + "Archive" = { + path = "~/NSFW"; + devices = pcDevices; + ignorePerms = true; + versioning = commonVersioning; + }; }); # GUI settings with authentication @@ -149,6 +157,9 @@ in (lib.mkIf (lib.elem "Archive" cfg.enabledFolders) { "Archive/.stignore".text = stignoreContent; }) + (lib.mkIf (lib.elem "NSFW" cfg.enabledFolders) { + "NSFW/.stignore".text = stignoreContent; + }) ]; # For NixOS systems, we need to add Syncthing as a manual service in Traefik