From 46a646b67ba6d014bb28976188eed06d264831fe Mon Sep 17 00:00:00 2001 From: traxys Date: Wed, 11 Oct 2023 12:36:22 +0200 Subject: [PATCH] Expose port settings in nixos module --- nixos/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/default.nix b/nixos/default.nix index 3086697..7b29f44 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -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; }; };