Move syncthing to user config

This commit is contained in:
2022-02-18 17:15:20 +00:00
parent ec7866641e
commit 219a1b4d0e
3 changed files with 4 additions and 29 deletions

View File

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

View File

@@ -1,28 +0,0 @@
{ 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";
};
};
};
}

View File

@@ -15,6 +15,10 @@
services.dunst.enable = true; services.dunst.enable = true;
services.syncthing = {
enable = true;
};
home = { home = {
username = "daniel"; username = "daniel";
homeDirectory = "/home/daniel"; homeDirectory = "/home/daniel";