1
Fork 0
satellite/hosts/nixos/tethys/services/syncthing.nix

21 lines
483 B
Nix
Raw Normal View History

2024-05-21 01:37:39 +02:00
{ config, ... }:
let commonVersioning = {
type = "staggered";
params = {
cleanInterval = "3600"; # 1 hour in seconds
maxAge = "604800"; # 14 days in seconds.
2023-11-04 18:58:09 +01:00
};
};
2023-11-04 18:58:09 +01:00
in
2023-07-18 16:30:04 +02:00
{
2023-12-10 23:48:46 +01:00
imports = [ ../../common/optional/services/syncthing.nix ];
2023-07-18 16:30:04 +02:00
services.syncthing.settings.folders = {
2023-07-18 17:11:07 +02:00
"stellar-sanctum" = {
2024-05-21 01:37:39 +02:00
path = "${config.users.users.pilot.home}/projects/stellar-sanctum/";
2023-07-18 17:11:07 +02:00
devices = [ "enceladus" "lapetus" ];
2023-11-04 18:58:09 +01:00
versioning = commonVersioning;
2023-07-18 16:30:04 +02:00
};
};
}