nixos/modules/desktop/syncthing.nix

30 lines
870 B
Nix
Raw Normal View History

2023-08-13 19:34:10 +02:00
{ ... }: {
2023-08-12 03:20:56 +02:00
# https://nixos.wiki/wiki/Syncthing
services.syncthing = {
enable = true;
user = "caspervk";
2023-08-12 16:17:04 +02:00
group = "users";
2023-08-12 03:20:56 +02:00
dataDir = "/home/caspervk";
devices = {
"lambda" = {
id = "WES3JH4-S34HTC5-42YZHUJ-MX3Z6PA-PFO72KA-YIJMDOB-GQWZXZ3-I7BBTAS";
addresses = [ "tcp://lambda.caspervk.net" ];
};
2023-08-12 16:07:10 +02:00
"omega" = { id = "EZIQ7SI-Y6BBLUY-QI4EEYU-UNIXPSG-R6X5E77-AA2UC7S-VRV2LKQ-RNBOGQT"; };
2023-08-12 03:20:56 +02:00
"S10e" = { id = "DWC6YHB-FRYKFHD-FPOUITV-7GL2WZH-RSFOJXR-PHYXDO7-74NLBUZ-TZENVAC"; };
"zeta" = { id = "GQRNHAQ-MMRQYMD-P4RCA6I-5DJ3HXO-J2N2GVP-UGI55YR-HD3EYSO-ERU5QQV"; };
};
folders = {
"keepass" = {
path = "~/keepass";
2023-08-12 16:07:10 +02:00
devices = [ "lambda" "omega" "S10e" "zeta" ];
2023-08-12 03:20:56 +02:00
};
"sync" = {
path = "~/sync";
2023-08-12 16:07:10 +02:00
devices = [ "lambda" "omega" "zeta" ];
2023-08-12 03:20:56 +02:00
};
};
};
}