fix(nixos): defer RomM proxy routing

This commit is contained in:
2026-10-19 20:31:27 -04:00
parent db75cb2d61
commit 6147674bf8
2 changed files with 8 additions and 10 deletions

View File

@@ -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;
};

View File

@@ -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 = {