From 8267546811d6e4f3766e62ec2b86e8102bc6c031 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 15 Feb 2026 21:47:26 +0100 Subject: [PATCH] remove DCIM from syncthing --- hosts/nixos/nfss/home.nix | 1 - hosts/nixos/nfss/system.nix | 3 ++- hosts/nixos/thinkpad/home.nix | 1 - hosts/nixos/thinkpad/system.nix | 1 - modules/syncthing.nix | 1 - 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hosts/nixos/nfss/home.nix b/hosts/nixos/nfss/home.nix index 8eea131..ec18a05 100644 --- a/hosts/nixos/nfss/home.nix +++ b/hosts/nixos/nfss/home.nix @@ -14,7 +14,6 @@ Media = { enable = true; maxAgeDays = 7; }; Archive = { enable = true; maxAgeDays = 30; }; Consume = { enable = true; maxAgeDays = 7; }; - DCIM = { enable = true; maxAgeDays = 7; path = "/mnt/storage/DCIM"; }; }; services.scheduled-commands.dcim-consume = { diff --git a/hosts/nixos/nfss/system.nix b/hosts/nixos/nfss/system.nix index 83274b6..63a6691 100644 --- a/hosts/nixos/nfss/system.nix +++ b/hosts/nixos/nfss/system.nix @@ -150,9 +150,10 @@ # Borg backup configuration services.borg-client-custom = { - enable = false; + enable = true; repositoryUrl = "ssh://helsinki-box/./nfss"; backupPaths = [ + "/mnt/storage/DCIM" ]; backupFrequency = "*-*-* 01:00:00"; retention = { diff --git a/hosts/nixos/thinkpad/home.nix b/hosts/nixos/thinkpad/home.nix index 3aed2df..cb1eab4 100644 --- a/hosts/nixos/thinkpad/home.nix +++ b/hosts/nixos/thinkpad/home.nix @@ -14,7 +14,6 @@ Media = { enable = true; maxAgeDays = 7; }; Archive = { enable = true; maxAgeDays = 30; }; Consume = { enable = true; maxAgeDays = 7; }; - DCIM = { enable = true; maxAgeDays = 7; path = "~/DCIM"; }; }; services.scheduled-commands.aicloud-backup = { diff --git a/hosts/nixos/thinkpad/system.nix b/hosts/nixos/thinkpad/system.nix index e882200..467a882 100644 --- a/hosts/nixos/thinkpad/system.nix +++ b/hosts/nixos/thinkpad/system.nix @@ -198,7 +198,6 @@ "/home/yanlin/Credentials" "/home/yanlin/Documents" "/home/yanlin/Media" - "/home/yanlin/DCIM" ]; backupFrequency = "*-*-* 00:00:00"; retention = { diff --git a/modules/syncthing.nix b/modules/syncthing.nix index cabe71a..a8f5517 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -44,7 +44,6 @@ in Media = mkFolderOptions "Media" { devices = lib.filter (d: d != "iphone") allDevices; }; Archive = mkFolderOptions "Archive" {}; Consume = mkFolderOptions "Consume" {}; - DCIM = mkFolderOptions "DCIM" { devices = serverDevices; }; }; enableGui = lib.mkOption { type = lib.types.bool;