nixos-config/services/syncthing/rpi4.nix

37 lines
826 B
Nix
Raw Normal View History

2020-10-06 17:41:56 +02:00
{ config, pkgs, ... }:
2021-05-13 00:30:09 +02:00
let
versioning = {
type = "trashcan";
params.cleanoutDays = "30";
};
in {
2020-10-06 17:41:56 +02:00
services.syncthing = {
enable = true;
openDefaultPorts = true;
user = "felschr";
configDir = "/home/felschr/.config/syncthing";
dataDir = "/home/felschr/.local/share/syncthing";
2021-08-04 21:34:13 +02:00
devices = {
2022-02-05 01:24:41 +01:00
home-pc = {
2022-02-03 20:10:45 +01:00
id = "S4GZGYU-YN4SRVQ-SXSVWSJ-QYJYNIZ-LECWTJN-YMIUN5U-SNKECTW-BD3KOAB";
2021-08-04 21:34:13 +02:00
};
};
# TODO switch to external storage
folders = {
"Default" = {
id = "default";
path = "/home/felschr/sync/default";
2022-02-05 01:24:41 +01:00
devices = [ "home-pc" ];
2021-08-04 21:34:13 +02:00
inherit versioning;
};
"Backups" = {
id = "backups";
path = "/home/felschr/sync/backups";
2022-02-05 01:24:41 +01:00
devices = [ "home-pc" ];
2021-08-04 21:34:13 +02:00
inherit versioning;
2020-10-06 17:41:56 +02:00
};
};
};
}