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."; 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";
@@ -139,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.reverseProxy.route.domain; nginx.virtualHost = cfg.virtualHost;
inherit environmentFile; inherit environmentFile;
}; };

View File

@@ -91,21 +91,13 @@
guests.romm = { guests.romm = {
enable = true; enable = true;
vlan = 20; vlan = 20;
address = "10.23.20.44";
dataPath = "/pikachu/data/romm"; dataPath = "/pikachu/data/romm";
postgresqlPath = "/pikachu/data/romm/postgresql"; postgresqlPath = "/pikachu/data/romm/postgresql";
redisPath = "/pikachu/data/romm/redis"; redisPath = "/pikachu/data/romm/redis";
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";
reverseProxy = { virtualHost = "romm.alexion.dev";
enable = true;
route = {
domain = "romm.alexion.dev";
protocol = "https";
port = 80;
};
};
}; };
guests.reverse-proxy = { guests.reverse-proxy = {