From 266b33450104268176e67d84bd63d117b093a436 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sun, 18 Jan 2026 18:56:41 +0100 Subject: [PATCH 1/2] syncthing: Exclude downloads folder from backups --- modules/system/services/syncthing.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/system/services/syncthing.nix b/modules/system/services/syncthing.nix index f9e41ba..a72892b 100644 --- a/modules/system/services/syncthing.nix +++ b/modules/system/services/syncthing.nix @@ -145,6 +145,7 @@ in restic.backups.syncthing = lib.mkIf cfg.doBackups { conflictingService = "syncthing.service"; paths = [ dataDir ]; + extraConfig.exclude = [ "${dataDir}/Downloads" ]; }; }; From e3b572ef9686a657533c8650bbe9af2fc2ac39e5 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sun, 18 Jan 2026 18:57:46 +0100 Subject: [PATCH 2/2] syncthing: Sync zsh history file --- modules/system/services/syncthing.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/services/syncthing.nix b/modules/system/services/syncthing.nix index a72892b..1cf3966 100644 --- a/modules/system/services/syncthing.nix +++ b/modules/system/services/syncthing.nix @@ -44,6 +44,7 @@ in "Pictures" "Projects" "Videos" + ".local/share/zsh" ]; }; }; @@ -145,7 +146,10 @@ in restic.backups.syncthing = lib.mkIf cfg.doBackups { conflictingService = "syncthing.service"; paths = [ dataDir ]; - extraConfig.exclude = [ "${dataDir}/Downloads" ]; + extraConfig.exclude = [ + "${dataDir}/Downloads" + "${dataDir}/.local/share/zsh" + ]; }; };