Expose port settings in nixos module

This commit is contained in:
traxys 2023-10-11 12:36:22 +02:00
parent b28e6363c4
commit 46a646b67b

View file

@ -60,6 +60,11 @@ with lib; {
type = types.str;
default = "postgres://${config.services.stalwart-accounts.user}/stalwart-accounts?host=/var/run/postgresql";
};
port = mkOption {
type = types.port;
default = 8080;
};
};
user = mkOption {
@ -119,6 +124,7 @@ with lib; {
MAIL_ADMIN_MAIL_DOMAIN = cfg.settings.mailDomain;
MAIL_ADMIN_JWT_SECRET = cfg.settings.jwtSecret;
MAIL_ADMIN_CLIENT_SECRET = cfg.settings.oidcClientSecret;
MAIL_ADMIN_PORT = toString cfg.settings.port;
};
};