Testing syntching (if works, refactoring needed)

This commit is contained in:
Andrea Ciceri 2022-01-19 00:14:50 +01:00
parent d0c42a5b7f
commit 4a657d52f5
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
3 changed files with 65 additions and 1 deletions

View file

@ -165,10 +165,40 @@
guiAddress = "0.0.0.0:8384";
dataDir = "/mnt/archivio/syncthing";
user = "ccr";
devices = {
oneplus5t = {
id = "IUETIK2-LBTIIKO-GTZXVMA-LEDFK5I-F2M7JKX-76OUDJL-QRJ62J4-5DYYIAI";
};
pc = {
id = "VI4CPQE-PTRRBQQ-LQVG3SE-7BVHQC2-TT4TIP7-L3OBXQR-AWLZVCO-GVPQUQG";
};
};
folders = {
"/mnt/archivio/syncthing/camera" = {
id = "camera";
devices = [ "oneplus5t" ];
};
"/mnt/archivio/syncthing/orgzly" = {
id = "orgzly";
devices = [ "oneplus5t" "pc" ];
};
"/mnt/archivio/syncthing/roam" = {
id = "roam";
devices = [ "oneplus5t" "pc" ];
};
"/mnt/archivio/syncthing/whatsapp" = {
id = "whatsapp";
devices = [ "oneplus5t" ];
};
"/mnt/archivio/syncthing/calls" = {
id = "calls";
devices = [ "oneplus5t" ];
};
};
};
navidrome = {
enable = true;
enable = false;
settings = {
Address = "0.0.0.0";
Port = 9093;

View file

@ -56,5 +56,22 @@
};
};
services.syncthing = {
enable = true;
guiAddress = "127.0.0.1:8384";
dataDir = "/home/ccr/syncthing";
user = "ccr";
folders = {
"orgzly" = {
id = "orgzly";
path = "/home/ccr/orgzly";
};
"roam" = {
id = "roam";
path = "/home/ccr/roam";
};
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}

View file

@ -51,5 +51,22 @@
};
};
services.syncthing = {
enable = true;
guiAddress = "127.0.0.1:8384";
dataDir = "/home/ccr/syncthing";
user = "ccr";
folders = {
"orgzly" = {
id = "orgzly";
path = "/home/ccr/orgzly";
};
"roam" = {
id = "roam";
path = "/home/ccr/roam";
};
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}