62 lines
1.4 KiB
Nix
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
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|