refactor(nixos): derive RomM virtual host
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user