nixos/pgadmin: Use lib.mkEnableOption where possible (#449513)

This commit is contained in:
Sandro
2025-10-13 15:45:03 +00:00
committed by GitHub

View File

@@ -94,13 +94,7 @@ in
}; };
emailServer = { emailServer = {
enable = lib.mkOption { enable = lib.mkEnableOption "SMTP email server. This is necessary, if you want to use password recovery or change your own password";
description = ''
Enable SMTP email server. This is necessary, if you want to use password recovery or change your own password
'';
type = lib.types.bool;
default = false;
};
address = lib.mkOption { address = lib.mkOption {
description = "SMTP server for email delivery"; description = "SMTP server for email delivery";
type = lib.types.str; type = lib.types.str;
@@ -111,16 +105,8 @@ in
type = lib.types.port; type = lib.types.port;
default = 25; default = 25;
}; };
useSSL = lib.mkOption { useSSL = lib.mkEnableOption "SSL for connecting to the SMTP server";
description = "SMTP server should use SSL"; useTLS = lib.mkEnableOption "TLS for connecting to the SMTP server";
type = lib.types.bool;
default = false;
};
useTLS = lib.mkOption {
description = "SMTP server should use TLS";
type = lib.types.bool;
default = false;
};
username = lib.mkOption { username = lib.mkOption {
description = "SMTP server username for email delivery"; description = "SMTP server username for email delivery";
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;