From a1ee523642a7888b9587c0db17e5f068020b43e6 Mon Sep 17 00:00:00 2001 From: Jacob Hinkle Date: Thu, 13 Oct 2022 09:04:30 -0400 Subject: [PATCH] Add syncthing --- machines/pedro/configuration.nix | 2 ++ machines/pedro/hardware-configuration-zfs.nix | 5 +++++ machines/pedro/syncthing.nix | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 machines/pedro/syncthing.nix diff --git a/machines/pedro/configuration.nix b/machines/pedro/configuration.nix index aaf39c7..db5de6e 100644 --- a/machines/pedro/configuration.nix +++ b/machines/pedro/configuration.nix @@ -147,6 +147,8 @@ #media-session.enable = true; }; + syncthing = import ./syncthing.nix; + unifi = { enable = true; openFirewall = true; diff --git a/machines/pedro/hardware-configuration-zfs.nix b/machines/pedro/hardware-configuration-zfs.nix index 585f841..a571462 100644 --- a/machines/pedro/hardware-configuration-zfs.nix +++ b/machines/pedro/hardware-configuration-zfs.nix @@ -81,6 +81,11 @@ fsType = "zfs"; neededForBoot = true; }; + fileSystems."/serverdata/syncthing" = + { device = "rpool/serverdata/syncthing"; + fsType = "zfs"; + neededForBoot = true; + }; fileSystems."/home" = { device = "rpool/userdata/home"; diff --git a/machines/pedro/syncthing.nix b/machines/pedro/syncthing.nix new file mode 100644 index 0000000..57f2e64 --- /dev/null +++ b/machines/pedro/syncthing.nix @@ -0,0 +1,9 @@ +{ + enable = true; + dataDir = "/serverdata/syncthing/"; + user = "jacob"; + group = "users"; + #openDefaultPorts = true; + configDir = "/serverdata/syncthing/.config/syncthing"; + guiAddress = "192.168.88.0:8234"; # for headless +}