fixing syncthing

This commit is contained in:
Ingolf Wagner 2022-01-18 20:20:56 +01:00
parent 875620e809
commit dd75b61992
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 20 additions and 14 deletions

View file

@ -61,26 +61,32 @@
}; };
movies = { movies = {
enable = true; enable = true;
watch = true;
path = "/media/syncthing/movies"; path = "/media/syncthing/movies";
}; };
music-library = { music-library = {
enable = true; enable = true;
watch = true;
path = "/media/syncthing/music"; path = "/media/syncthing/music";
}; };
music-projects = { music-projects = {
enable = true; enable = true;
watch = true;
path = "/media/syncthing/music-projects"; path = "/media/syncthing/music-projects";
}; };
nextcloud_backup = { nextcloud_backup = {
enable = true; enable = true;
watch = true;
path = "/media/syncthing/nextcloud_backup"; path = "/media/syncthing/nextcloud_backup";
}; };
samples = { samples = {
enable = true; enable = true;
watch = true;
path = "/media/syncthing/samples"; path = "/media/syncthing/samples";
}; };
series = { series = {
enable = true; enable = true;
watch = true;
path = "/media/syncthing/series"; path = "/media/syncthing/series";
}; };

View file

@ -78,8 +78,8 @@ in
find "$ROOT_PATH" -type f -exec chmod "$FILE_MODE" {} + find "$ROOT_PATH" -type f -exec chmod "$FILE_MODE" {} +
''; '';
PrivateTmp = true; PrivateTmp = true;
Restart = "always"; #Restart = "always";
RestartSec = 10; #RestartSec = 10;
UMask = umask; UMask = umask;
}; };
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];

View file

@ -46,7 +46,7 @@ with lib; {
# ------------------------------- # -------------------------------
private = { private = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "sterni" ]; devices = [ "pepe" "sterni" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -55,12 +55,12 @@ with lib; {
}; };
desktop = { desktop = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "sterni" ]; devices = [ "pepe" "sterni" ];
}; };
finance = { finance = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "sterni" ]; devices = [ "pepe" "sterni" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -69,7 +69,7 @@ with lib; {
}; };
fotos = { fotos = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "sterni" ]; devices = [ "pepe" "sterni" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -82,7 +82,7 @@ with lib; {
books = { books = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
id = "wwbvs-5lfbh"; id = "wwbvs-5lfbh";
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "sterni" "robi" ]; devices = [ "pepe" "sterni" "robi" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -91,7 +91,7 @@ with lib; {
}; };
lost-fotos = { lost-fotos = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "robi" ]; devices = [ "pepe" "robi" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -101,7 +101,7 @@ with lib; {
movies = { movies = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
id = "vatmy-c2qf4"; id = "vatmy-c2qf4";
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "robi" ]; devices = [ "pepe" "robi" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -111,7 +111,7 @@ with lib; {
music-library = { music-library = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
id = "gytmq-r2zrx"; id = "gytmq-r2zrx";
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "sterni" "robi" ]; devices = [ "pepe" "sterni" "robi" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -121,7 +121,7 @@ with lib; {
music-projects = { music-projects = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
id = "acfhu-r4t4f"; id = "acfhu-r4t4f";
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "sterni" "robi" ]; devices = [ "pepe" "sterni" "robi" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -130,7 +130,7 @@ with lib; {
}; };
nextcloud_backup = { nextcloud_backup = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "robi" ]; devices = [ "pepe" "robi" ];
versioning = { versioning = {
type = "simple"; type = "simple";
@ -140,13 +140,13 @@ with lib; {
samples = { samples = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
id = "pcgkj-tjucd"; id = "pcgkj-tjucd";
watch = false; watch = lib.mkDefault false;
devices = [ "sterni" "pepe" "robi" ]; devices = [ "sterni" "pepe" "robi" ];
}; };
series = { series = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
id = "all-series"; id = "all-series";
watch = false; watch = lib.mkDefault false;
devices = [ "pepe" "robi" ]; devices = [ "pepe" "robi" ];
versioning = { versioning = {
type = "simple"; type = "simple";