From 4a657d52f5ac6c04bc3ce19eae8d4210e1087fbf Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Wed, 19 Jan 2022 00:14:50 +0100 Subject: [PATCH] Testing `syntching` (if works, refactoring needed) --- hosts/hs/configuration.nix | 32 +++++++++++++++++++++++++++++++- hosts/pbp/configuration.nix | 17 +++++++++++++++++ hosts/pc/configuration.nix | 17 +++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) diff --git a/hosts/hs/configuration.nix b/hosts/hs/configuration.nix index 6a28de3..bc4f7d3 100644 --- a/hosts/hs/configuration.nix +++ b/hosts/hs/configuration.nix @@ -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; diff --git a/hosts/pbp/configuration.nix b/hosts/pbp/configuration.nix index 4e15786..717340e 100644 --- a/hosts/pbp/configuration.nix +++ b/hosts/pbp/configuration.nix @@ -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"; } diff --git a/hosts/pc/configuration.nix b/hosts/pc/configuration.nix index b57e8f5..ef2520e 100644 --- a/hosts/pc/configuration.nix +++ b/hosts/pc/configuration.nix @@ -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"; }