Add syncthing for dingbox
This commit is contained in:
28
hosts/dingbox/syncthing/default.nix
Normal file
28
hosts/dingbox/syncthing/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user