Expose port settings in nixos module
This commit is contained in:
parent
b28e6363c4
commit
46a646b67b
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue