diff --git a/hosts/Lenni/default.nix b/hosts/Lenni/default.nix index d08b671..5d54942 100644 --- a/hosts/Lenni/default.nix +++ b/hosts/Lenni/default.nix @@ -3,5 +3,6 @@ imports = [ ./hardware-configuration.nix #./disko.nix + ./syncthing.nix ]; } diff --git a/hosts/desktop/syncthing.nix b/hosts/Lenni/syncthing.nix similarity index 100% rename from hosts/desktop/syncthing.nix rename to hosts/Lenni/syncthing.nix diff --git a/hosts/Puenktchen/default.nix b/hosts/Puenktchen/default.nix index 81f90fb..2f8eb6c 100644 --- a/hosts/Puenktchen/default.nix +++ b/hosts/Puenktchen/default.nix @@ -3,5 +3,6 @@ imports = [ ./hardware-configuration.nix ./disko.nix + ./syncthing.nix ]; } diff --git a/hosts/Puenktchen/syncthing.nix b/hosts/Puenktchen/syncthing.nix new file mode 100644 index 0000000..c975529 --- /dev/null +++ b/hosts/Puenktchen/syncthing.nix @@ -0,0 +1,52 @@ +{ ... }: +{ + services.syncthing = { + enable = true; + user = "willifan"; + dataDir = "/mnt/data"; + configDir = "/mnt/data/.config/syncthing"; + overrideDevices = true; + overrideFolders = true; + settings = { + gui = { + user = "willifan"; + password = "temppassword"; + }; + devices = { + Anton = { id = "WCDBADD-UPKCACI-X2YJOIO-5QC44PL-DBCR6TS-ADVQV33-HSMF32O-FOKMKAU"; }; + }; + folders = { + "Documents" = { + id = "jtl6g-qjmwo"; + path = "/mnt/data/Documents"; + devices = [ "Anton" ]; + }; + "Enpass" = { + id = "ciksm-xsw4m"; + path = "/mnt/data/Enpass"; + devices = [ "Anton" ]; + }; + "Pictures" = { + id = "po4qj-q9t0t"; + path = "/mnt/data/Pictures"; + devices = [ "Anton" ]; + }; + "Videos" = { + id = "4wqf5-xasng"; + path = "/mnt/data/Videos"; + devices = [ "Anton" ]; + }; + "Notes" = { + id = "oc61n-iewgj"; + path = "/mnt/data/Notes"; + devices = [ "Anton" ]; + }; + "Music" = { + id = "xxh8a-3y2tq"; + path = "/mnt/data/Music"; + devices = [ "Anton" ]; + }; + }; + }; + }; +} diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index e0e477a..d93246d 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -6,7 +6,6 @@ ./nfs-client.nix ./nix-ld.nix ./printers.nix - ./syncthing.nix ]; hardware.bluetooth.enable = true;