diff --git a/configs/nixos/guests/romm.nix b/configs/nixos/guests/romm.nix index 44ab9a5..e468616 100644 --- a/configs/nixos/guests/romm.nix +++ b/configs/nixos/guests/romm.nix @@ -53,6 +53,12 @@ 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"; @@ -139,7 +145,7 @@ in database.createLocally = true; redis.createLocally = true; watcher.enable = true; - nginx.virtualHost = cfg.reverseProxy.route.domain; + nginx.virtualHost = cfg.virtualHost; inherit environmentFile; }; diff --git a/configs/nixos/hosts/pikachu/default.nix b/configs/nixos/hosts/pikachu/default.nix index 856759c..33de866 100644 --- a/configs/nixos/hosts/pikachu/default.nix +++ b/configs/nixos/hosts/pikachu/default.nix @@ -91,21 +91,13 @@ guests.romm = { enable = true; vlan = 20; - address = "10.23.20.44"; dataPath = "/pikachu/data/romm"; postgresqlPath = "/pikachu/data/romm/postgresql"; redisPath = "/pikachu/data/romm/redis"; romsPath = "/pikachu/media/games/emulation/roms"; biosPath = "/pikachu/media/games/emulation/bios"; usersPath = "/pikachu/media/games/emulation/users"; - reverseProxy = { - enable = true; - route = { - domain = "romm.alexion.dev"; - protocol = "https"; - port = 80; - }; - }; + virtualHost = "romm.alexion.dev"; }; guests.reverse-proxy = {