add syncthing folder

This commit is contained in:
Yan Lin 2025-11-27 21:27:25 +01:00
parent 899f39372a
commit 0ee9feb84e

View file

@ -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