refactor(nixos): derive RomM nginx host from route

This commit is contained in:
2026-10-19 23:06:15 -04:00
parent 1f36d704d0
commit d2ad6ac701
2 changed files with 3 additions and 10 deletions

View File

@@ -131,9 +131,9 @@ in
];
guests.romm = {
interior.modules.services.romm = {
enable = true;
virtualHost = cfg.reverseProxy.route.domain;
interior = {
modules.services.romm.enable = true;
services.romm.nginx.virtualHost = cfg.reverseProxy.route.domain;
};
mounts = {

View File

@@ -16,12 +16,6 @@ in
readOnly = true;
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 [
@@ -41,7 +35,6 @@ in
database.createLocally = true;
redis.createLocally = true;
watcher.enable = true;
nginx.virtualHost = cfg.virtualHost;
inherit (cfg) environmentFile;
};