diff --git a/roles/gaming/services/syncthing.nix b/roles/gaming/services/syncthing.nix index 77bbd87..7b27b67 100644 --- a/roles/gaming/services/syncthing.nix +++ b/roles/gaming/services/syncthing.nix @@ -17,6 +17,12 @@ devices = ["steamdeck" "server" "pc" "winmax2"]; path = "~/.local/share/Steam/steamapps/common/Hatsune Miku Project DIVA Mega Mix Plus/mods/"; }; + "project-eden-saves" = { + label = "Project Eden saves"; + id = "xa3qx-3ax5k"; + devices = ["server" "pc" "winmax2" "steamdeck"]; + path = "~/.local/share/Steam/steamapps/compatdata/1761390/pfx/drive_c/users/steamuser/AppData/Roaming/EDEN/"; + }; }; home-manager.users.toast.home.file."steam-201810-ignore" = { target = ".local/share/Steam/steamapps/compatdata/201810/pfx/drive_c/users/steamuser/Saved Games/MachineGames/Wolfenstein The New Order/.stignore"; diff --git a/roles/server/changedetection-io.nix b/roles/server/changedetection-io.nix new file mode 100755 index 0000000..3eae202 --- /dev/null +++ b/roles/server/changedetection-io.nix @@ -0,0 +1,31 @@ +{...}: { + services.changedetection-io = { + enable = true; + baseURL = "changedetection.everest.tailscale"; + behindProxy = true; + playwrightSupport = true; + }; + systemd.services.changedetection-io.serviceConfig.Environment = [ + "HIDE_REFERER=false" + ]; + + # Add a record for changedetection-io + services.headscale.settings.dns.extra_records = [ + { + name = "changedetection.everest.tailscale"; + type = "A"; + value = "100.100.0.1"; + } + ]; + + # Set up caddy as the reverse proxy for changedetection-io + services.caddy.virtualHosts.changedetection-io = { + hostName = "changedetection.everest.tailscale"; + extraConfig = '' + import tailscale + reverse_proxy localhost:5000 { + header_up Referer {header.Referer} + } + ''; + }; +} diff --git a/roles/server/default.nix b/roles/server/default.nix index 3596f3a..7b3787d 100755 --- a/roles/server/default.nix +++ b/roles/server/default.nix @@ -16,5 +16,6 @@ ./rust_motd.nix ./minecraft.nix ./adguard.nix + ./changedetection-io.nix ]; } diff --git a/roles/server/syncthing.nix b/roles/server/syncthing.nix index 50e1857..fe174f1 100755 --- a/roles/server/syncthing.nix +++ b/roles/server/syncthing.nix @@ -38,6 +38,12 @@ devices = ["server" "pc" "winmax2" "imac"]; path = "${config.services.syncthing.dataDir}/school-things"; }; + "project-eden-saves" = { + label = "Project Eden saves"; + id = "xa3qx-3ax5k"; + devices = ["server" "pc" "winmax2" "steamdeck"]; + path = "${config.services.syncthing.dataDir}/project-eden-saves"; + }; }; }; systemd.services.syncthing.serviceConfig = {