Commit 7385998c8f2f

Vincent Demeester <vincent@sbr.pm>
2025-10-16 15:51:07
systems/nagoya: also server nagoya.home
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 7abeb5b
Changed files (1)
systems
systems/nagoya/extra.nix
@@ -54,6 +54,15 @@
         }
       ) (lib.attrsets.filterAttrs (_name: value: (libx.hasVPNips value)) globals.machines);
     };
+    virtualHosts."nagoya.home" = {
+      locations = lib.attrsets.mapAttrs' (
+        name: value:
+        lib.attrsets.nameValuePair "/syncthing/${name}/" {
+          proxyPass = "http://${builtins.head value.net.vpn.ips}:8384/";
+          recommendedProxySettings = true;
+        }
+      ) (lib.attrsets.filterAttrs (_name: value: (libx.hasVPNips value)) globals.machines);
+    };
   };
 
   environment.systemPackages = with pkgs; [