This repository has been archived on 2024-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/hosts/hermes/syncthing.nix
2023-08-06 19:38:40 +05:30

62 lines
1.4 KiB
Nix

{ ... }:
{
imports = [
../../modules/common-syncthing.nix
];
services.syncthing = {
guiAddress = "127.0.0.1:8384";
settings = {
folders = {
Keepass = {
enable = true;
devices = [ "bebop" "Childish Tycoon" ];
type = "sendreceive";
fsWatcherEnabled = true;
versioning = {
type = "simple";
params.keep = "5";
};
};
Syncthing = {
enable = true;
devices = [ "bebop" "Childish Tycoon" ];
type = "sendreceive";
fsWatcherEnabled = true;
versioning = {
type = "staggered";
params = {
cleanInterval = "3600";
maxAge = "31536000";
};
};
};
org = {
enable = true;
devices = [ "bebop" "Childish Tycoon" ];
type = "sendreceive";
fsWatcherEnabled = true;
};
Music = {
enable = true;
devices = [ "bebop" "Childish Tycoon" ];
type = "sendreceive";
fsWatcherEnabled = true;
};
Pictures = {
enable = false;
# Kept as future reminder
devices = [ ]; # no pause option in NixOS module, no sharing is as good as paused
type = "sendreceive";
fsWatcherEnabled = false; # disabled folder, no need to fsWatcherEnabled
};
};
};
};
}