1
Fork 0
satellite/hosts/nixos/tethys/services/syncthing.nix
2023-12-13 19:30:04 +01:00

27 lines
664 B
Nix

let
# TODO: remove this once I switch to zfs
commonVersioning = {
type = "staggered";
params = {
cleanInterval = "3600"; # 1 hour in seconds
maxAge = "604800"; # 14 days in seconds.
};
};
in
{
imports = [ ../../common/optional/services/syncthing.nix ];
services.syncthing.settings.folders = {
"mythical-vault" = {
path = "/home/adrielus/.password-store";
devices = [ "enceladus" "lapetus" ];
versioning = commonVersioning;
};
"stellar-sanctum" = {
path = "/home/adrielus/projects/stellar-sanctum/";
devices = [ "enceladus" "lapetus" ];
versioning = commonVersioning;
};
};
}