29 lines
559 B
Nix
29 lines
559 B
Nix
{ config, lib, pkgs, ...}:
|
|
|
|
{
|
|
services.syncthing = {
|
|
enable = true;
|
|
user = "daniel";
|
|
openDefaultPorts = true;
|
|
dataDir = config.users.users.daniel.home;
|
|
devices = {
|
|
"phone" = {
|
|
id = "MZRKZDE-JOMQA4V-IGKELNR-UCZAZNG-URDOHUA-DHDGZYW-A4NVYWT-ZJLECQN";
|
|
};
|
|
};
|
|
folders = {
|
|
"camera" = {
|
|
devices = ["phone"];
|
|
id = "pixel_6_fayt-photos";
|
|
path = "/home/daniel/Pictures/Camera";
|
|
type = "receiveonly";
|
|
};
|
|
"movies" = {
|
|
devices = ["phone"];
|
|
id = "movie_repo";
|
|
path = "/home/daniel/Sync/movies";
|
|
};
|
|
};
|
|
};
|
|
}
|