Add syncthing for dingbox

This commit is contained in:
2022-02-13 16:07:18 +00:00
parent 10ca7f1702
commit b6a9d564f8
2 changed files with 29 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./syncthing
../common
];

View 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";
};
};
};
}