Move syncthing to user config
This commit is contained in:
@@ -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
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user