diff --git a/hosts/nixos/nfss/home.nix b/hosts/nixos/nfss/home.nix index e7e1221..ea96867 100644 --- a/hosts/nixos/nfss/home.nix +++ b/hosts/nixos/nfss/home.nix @@ -13,6 +13,7 @@ Documents = { enable = true; maxAgeDays = 30; }; Media = { enable = true; maxAgeDays = 7; }; Archive = { enable = true; maxAgeDays = 30; }; + DCIM = { enable = true; maxAgeDays = 7; path = "/mnt/essd/DCIM" }; }; services.scheduled-commands.dcim-consume = { diff --git a/hosts/nixos/thinkpad/home.nix b/hosts/nixos/thinkpad/home.nix index 6d2c823..f0c20b1 100644 --- a/hosts/nixos/thinkpad/home.nix +++ b/hosts/nixos/thinkpad/home.nix @@ -13,6 +13,7 @@ Documents = { enable = true; maxAgeDays = 30; }; Media = { enable = true; maxAgeDays = 7; }; Archive = { enable = true; maxAgeDays = 30; }; + DCIM = { enable = true; maxAgeDays = 7; path = "~/DCIM" }; }; services.scheduled-commands.aicloud-backup = { diff --git a/modules/syncthing.nix b/modules/syncthing.nix index 6a04be9..39be8fb 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -6,9 +6,10 @@ let cfg = config.syncthing-custom; - pcDevices = [ "macbook" "imac" "thinkpad" "nfss" ]; + pcDevices = [ "macbook" "imac" ]; + serverDevices = [ "thinkpad" "nfss" ]; touchDevices = [ "iphone" "ipad" ]; - allDevices = pcDevices ++ touchDevices; + allDevices = pcDevices ++ serverDevices ++ touchDevices; mkFolderOptions = name: overrides: let opts = { @@ -39,9 +40,10 @@ in options.syncthing-custom = { folders = { Credentials = mkFolderOptions "Credentials" {}; - Documents = mkFolderOptions "Documents" { devices = pcDevices; }; + Documents = mkFolderOptions "Documents" { devices = pcDevices ++ serverDevices; }; Media = mkFolderOptions "Media" { devices = lib.filter (d: d != "iphone") allDevices; }; Archive = mkFolderOptions "Archive" {}; + DCIM = mkFolderOptions "DCIM" { devices = serverDevices; }; }; enableGui = lib.mkOption { type = lib.types.bool;