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 +}