diff --git a/hosts/manatee/configuration.nix b/hosts/manatee/configuration.nix index 711e323..d729345 100644 --- a/hosts/manatee/configuration.nix +++ b/hosts/manatee/configuration.nix @@ -2,6 +2,7 @@ { imports = [ ../../config-manager/default.nix + ../../shared-modules/syncthing.nix ./hardware-configuration.nix ./disk-config.nix ./modules 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";