refactor(nixos): derive RomM nginx host from route
This commit is contained in:
@@ -131,9 +131,9 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
guests.romm = {
|
guests.romm = {
|
||||||
interior.modules.services.romm = {
|
interior = {
|
||||||
enable = true;
|
modules.services.romm.enable = true;
|
||||||
virtualHost = cfg.reverseProxy.route.domain;
|
services.romm.nginx.virtualHost = cfg.reverseProxy.route.domain;
|
||||||
};
|
};
|
||||||
|
|
||||||
mounts = {
|
mounts = {
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ in
|
|||||||
readOnly = true;
|
readOnly = true;
|
||||||
description = "Path to RomM's environment file.";
|
description = "Path to RomM's environment file.";
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualHost = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
example = "romm.example.org";
|
|
||||||
description = "Public host name configured in RomM's nginx.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
@@ -41,7 +35,6 @@ in
|
|||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
redis.createLocally = true;
|
redis.createLocally = true;
|
||||||
watcher.enable = true;
|
watcher.enable = true;
|
||||||
nginx.virtualHost = cfg.virtualHost;
|
|
||||||
inherit (cfg) environmentFile;
|
inherit (cfg) environmentFile;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user