From 0ee9feb84e4a292883c366cd87034ad706797543 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Thu, 27 Nov 2025 21:27:25 +0100 Subject: [PATCH] add syncthing folder --- modules/syncthing.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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