nix-config/hosts/desktop/syncthing.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2024-05-11 19:56:45 +02:00
{ pkgs, ... }:
{
services.syncthing = {
enable = true;
user = "willifan";
2024-05-22 11:06:48 +02:00
dataDir = "/mnt/data";
configDir = "/mnt/data/.config/syncthing";
2024-05-11 19:56:45 +02:00
overrideDevices = true;
overrideFolders = true;
settings = {
gui = {
user = "willifan";
password = "temppassword";
};
devices = {
2024-08-03 15:36:08 +02:00
Anton = { id = "WCDBADD-UPKCACI-X2YJOIO-5QC44PL-DBCR6TS-ADVQV33-HSMF32O-FOKMKAU"; };
2024-05-11 19:56:45 +02:00
};
folders = {
"Documents" = {
id = "jtl6g-qjmwo";
2024-05-14 17:08:54 +02:00
path = "/mnt/data/Documents";
2024-05-11 19:56:45 +02:00
devices = [ "Anton" ];
};
2024-06-26 15:53:23 +02:00
"Enpass" = {
id = "ciksm-xsw4m";
path = "/mnt/data/Enpass";
devices = [ "Anton" ];
};
2024-05-11 19:56:45 +02:00
"Pictures" = {
id = "po4qj-q9t0t";
2024-05-14 17:08:54 +02:00
path = "/mnt/data/Pictures";
2024-05-11 19:56:45 +02:00
devices = [ "Anton" ];
};
"Videos" = {
id = "4wqf5-xasng";
2024-05-14 17:08:54 +02:00
path = "/mnt/data/Videos";
2024-05-11 19:56:45 +02:00
devices = [ "Anton" ];
};
"Notes" = {
id = "oc61n-iewgj";
2024-05-14 17:08:54 +02:00
path = "/mnt/data/Notes";
2024-05-11 19:56:45 +02:00
devices = [ "Anton" ];
};
"Music" = {
id = "xxh8a-3y2tq";
2024-05-14 17:08:54 +02:00
path = "/mnt/data/Music";
2024-05-11 19:56:45 +02:00
devices = [ "Anton" ];
};
};
};
};
2024-08-03 15:36:08 +02:00
}