From ba3309c268ee122c0f3234be8f43edba41d02615 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sun, 18 May 2025 17:14:13 +0200 Subject: [PATCH] pinwheel/manatee: Share `org` via `syncthing` --- hosts/manatee/modules/syncthing/default.nix | 19 +++++++++++++++++-- hosts/pinwheel/modules/syncthing/default.nix | 2 ++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/hosts/manatee/modules/syncthing/default.nix b/hosts/manatee/modules/syncthing/default.nix index bbd0e2e..40b6b00 100644 --- a/hosts/manatee/modules/syncthing/default.nix +++ b/hosts/manatee/modules/syncthing/default.nix @@ -30,9 +30,24 @@ in insecureSkipHostcheck = false; }; - devices = { }; + devices = { + pinwheel.id = config.lib.syncthing.pinwheel; + }; - folders = { }; + folders = { + org = { + path = "/mnt/sync/public/org"; + devices = [ + "pinwheel" + ]; + versioning = { + type = "staggered"; + params = { + maxage = "2592000"; # 30 days + }; + }; + }; + }; }; }; diff --git a/hosts/pinwheel/modules/syncthing/default.nix b/hosts/pinwheel/modules/syncthing/default.nix index f4bc7e1..c56932b 100644 --- a/hosts/pinwheel/modules/syncthing/default.nix +++ b/hosts/pinwheel/modules/syncthing/default.nix @@ -16,6 +16,7 @@ devices = { phone.id = config.lib.syncthing.phone; backwards.id = config.lib.syncthing.backwards; + manatee.id = config.lib.syncthing.manatee; }; folders = { @@ -24,6 +25,7 @@ devices = [ "phone" "backwards" + "manatee" ]; versioning = { type = "staggered";