From 7b94e64d66c2b4bb5c0c4b97625780cbcd3c7ae2 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Fri, 26 Dec 2025 21:49:57 +0800 Subject: [PATCH] remove share folder --- modules/syncthing.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/modules/syncthing.nix b/modules/syncthing.nix index 5bf447c..4c80267 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -39,7 +39,7 @@ in options.syncthing-custom = { enabledFolders = lib.mkOption { type = lib.types.listOf lib.types.str; - default = [ "Credentials" "Documents" "Archive" "Share" ]; + default = [ "Credentials" "Documents" "Archive" ]; description = "List of Syncthing folders to enable for this host."; }; enableGui = lib.mkOption { @@ -108,14 +108,6 @@ in ignorePerms = true; versioning = commonVersioning; }; - }) - // (lib.optionalAttrs (lib.elem "Share" cfg.enabledFolders) { - "Share" = { - path = "~/Share"; - devices = allDevices; - ignorePerms = true; - versioning = commonVersioning; - }; }); # GUI settings with authentication @@ -153,9 +145,6 @@ in (lib.mkIf (lib.elem "Archive" cfg.enabledFolders) { "Archive/.stignore".text = stignoreContent; }) - (lib.mkIf (lib.elem "Share" cfg.enabledFolders) { - "Share/.stignore".text = stignoreContent; - }) ]; # For NixOS systems, we need to add Syncthing as a manual service in Traefik