61 lines
1.5 KiB
Nix
61 lines
1.5 KiB
Nix
|
{...}: {
|
||
|
imports = [./default.nix ./devices];
|
||
|
services.syncthing = {
|
||
|
user = "xenia";
|
||
|
group = "users";
|
||
|
dataDir = "/var/lib/syncthing";
|
||
|
folders = {
|
||
|
"Archive" = {
|
||
|
path = "/var/lib/syncthing/archive";
|
||
|
devices = ["ion" "monarch" "northstar"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Books" = {
|
||
|
path = "/var/lib/syncthing/books";
|
||
|
devices = ["monarch" "northstar" "remarkable"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Camera" = {
|
||
|
path = "/var/lib/syncthing/camera";
|
||
|
devices = ["ion"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Comics" = {
|
||
|
path = "/home/xenia/Documents/Comics";
|
||
|
devices = ["ion" "monarch" "northstar"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Documents" = {
|
||
|
path = "/var/lib/syncthing/documents";
|
||
|
devices = ["monarch" "northstar"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Exports" = {
|
||
|
path = "/var/lib/syncthing/exports";
|
||
|
devices = ["monarch"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Movies" = {
|
||
|
path = "/var/lib/syncthing/movies";
|
||
|
devices = ["ion" "monarch" "northstar"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Notes" = {
|
||
|
path = "/home/xenia/notes";
|
||
|
devices = ["ion" "monarch" "northstar" "H0615"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Pictures" = {
|
||
|
path = "/var/lib/syncthing/pictures";
|
||
|
devices = ["ion" "monarch" "northstar"];
|
||
|
enable = true;
|
||
|
};
|
||
|
"Xochitl" = {
|
||
|
path = "/var/lib/syncthing/xochitl";
|
||
|
devices = ["remarkable"];
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|