refactor(nixos): derive RomM virtual host

This commit is contained in:
2026-10-19 22:46:30 -04:00
parent ae50b329ca
commit 509b2f8656
2 changed files with 1 additions and 8 deletions

View File

@@ -53,12 +53,6 @@ in
description = "Host path mounted as RomM's user assets."; 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 { igdbClientIdSecret = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "services/romm/igdb/client-id"; default = "services/romm/igdb/client-id";
@@ -151,7 +145,7 @@ in
database.createLocally = true; database.createLocally = true;
redis.createLocally = true; redis.createLocally = true;
watcher.enable = true; watcher.enable = true;
nginx.virtualHost = cfg.virtualHost; nginx.virtualHost = cfg.reverseProxy.route.domain;
inherit environmentFile; inherit environmentFile;
}; };

View File

@@ -98,7 +98,6 @@
romsPath = "/pikachu/media/games/emulation/roms"; romsPath = "/pikachu/media/games/emulation/roms";
biosPath = "/pikachu/media/games/emulation/bios"; biosPath = "/pikachu/media/games/emulation/bios";
usersPath = "/pikachu/media/games/emulation/users"; usersPath = "/pikachu/media/games/emulation/users";
virtualHost = "games.alexion.dev";
reverseProxy = { reverseProxy = {
enable = true; enable = true;
route = { route = {