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

View File

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