diff --git a/services/syncthing/felix-nixos.nix b/services/syncthing/felix-nixos.nix index bba116d..02f8678 100644 --- a/services/syncthing/felix-nixos.nix +++ b/services/syncthing/felix-nixos.nix @@ -1,6 +1,11 @@ { config, pkgs, ... }: -{ +let + versioning = { + type = "trashcan"; + params.cleanoutDays = "30"; + }; +in { services.syncthing = { enable = true; openDefaultPorts = true; @@ -33,8 +38,9 @@ }; "Media" = { id = "media"; - path = "/home/felschr/sync/media"; + path = "/run/media/felschr/HDD/Media"; devices = [ "rpi4" ]; + inherit versioning; }; }; }; diff --git a/services/syncthing/rpi4.nix b/services/syncthing/rpi4.nix index 01f0f78..27d1783 100644 --- a/services/syncthing/rpi4.nix +++ b/services/syncthing/rpi4.nix @@ -1,6 +1,11 @@ { config, pkgs, ... }: -{ +let + versioning = { + type = "trashcan"; + params.cleanoutDays = "30"; + }; +in { services.syncthing = { enable = true; openDefaultPorts = true; @@ -26,16 +31,20 @@ id = "default"; path = "/home/felschr/sync/default"; devices = [ "felix-nixos" "pixel3" ]; + inherit versioning; }; "Backups" = { id = "backups"; path = "/home/felschr/sync/backups"; devices = [ "felix-nixos" ]; + inherit versioning; }; "Media" = { id = "media"; - path = "/home/felschr/sync/media"; + path = "/media"; + # path = "/media/inbox"; devices = [ "felix-nixos" ]; + inherit versioning; }; }; };