27 lines
521 B
Nix
27 lines
521 B
Nix
{ config, lib, ... }:
|
|
{
|
|
config.services.syncthing = {
|
|
enable = true;
|
|
|
|
user = "vsftpd";
|
|
group = "vsftpd";
|
|
|
|
devices = {
|
|
thrall = {
|
|
id = "P52YQU2-7LCEOVV-DSGTAZG-AJ2DSJD-JPHSUJE-HC2KAGO-YR4SXQD-V6OQ7QF";
|
|
addresses = [ "tcp://195.90.211.228:22000" ];
|
|
};
|
|
};
|
|
|
|
folders = {
|
|
"/var/lib/vsftpd/data/upload" = {
|
|
id = "paperless";
|
|
devices = [ "thrall" ];
|
|
versioning = {
|
|
type = "trashcan";
|
|
params.cleanoutDays = "90";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|