nixos/services/syncthing/Vanguard.nix
Evie Litherland-Smith 320d76f972 Move server directory and syncthing into services directory
Separate service setup from traefik config for each, prep for future
server separation
2023-05-26 08:52:46 +01:00

61 lines
1.6 KiB
Nix

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