Avoid "networking.domain"

This commit is contained in:
SebastianStork 2025-05-28 21:11:51 +02:00
parent 383235ae24
commit d5f7e88b59
10 changed files with 32 additions and 29 deletions

View file

@ -14,7 +14,7 @@ in
{
options.custom.services.hedgedoc = {
enable = lib.mkEnableOption "";
subdomain = lib.mkOption {
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
@ -42,7 +42,7 @@ in
environmentFile = config.sops.templates."hedgedoc/environment".path;
settings = {
domain = "${cfg.subdomain}.${config.networking.domain}";
domain = cfg.domain;
inherit (cfg) port;
protocolUseSSL = true;
allowAnonymous = false;