From 509b2f865618d0330bacc95db3c77ea7588df92b Mon Sep 17 00:00:00 2001 From: alexion Date: Mon, 19 Oct 2026 22:46:30 -0400 Subject: [PATCH] refactor(nixos): derive RomM virtual host --- configs/nixos/guests/romm.nix | 8 +------- configs/nixos/hosts/pikachu/default.nix | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/configs/nixos/guests/romm.nix b/configs/nixos/guests/romm.nix index 16eca94..4db8202 100644 --- a/configs/nixos/guests/romm.nix +++ b/configs/nixos/guests/romm.nix @@ -53,12 +53,6 @@ in description = "Host path mounted as RomM's user assets."; }; - virtualHost = lib.mkOption { - type = lib.types.str; - example = "romm.example.org"; - description = "Public host name configured in RomM's local nginx."; - }; - igdbClientIdSecret = lib.mkOption { type = lib.types.str; default = "services/romm/igdb/client-id"; @@ -151,7 +145,7 @@ in database.createLocally = true; redis.createLocally = true; watcher.enable = true; - nginx.virtualHost = cfg.virtualHost; + nginx.virtualHost = cfg.reverseProxy.route.domain; inherit environmentFile; }; diff --git a/configs/nixos/hosts/pikachu/default.nix b/configs/nixos/hosts/pikachu/default.nix index 9072b09..9b2c2d3 100644 --- a/configs/nixos/hosts/pikachu/default.nix +++ b/configs/nixos/hosts/pikachu/default.nix @@ -98,7 +98,6 @@ romsPath = "/pikachu/media/games/emulation/roms"; biosPath = "/pikachu/media/games/emulation/bios"; usersPath = "/pikachu/media/games/emulation/users"; - virtualHost = "games.alexion.dev"; reverseProxy = { enable = true; route = {