From cc38ed4577517666fd52b6d832b638702d1b1f89 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Tue, 7 Oct 2025 16:03:09 +0200 Subject: [PATCH] nixos/pgadmin: Use lib.mkEnableOption where possible Signed-off-by: Felix Singer --- nixos/modules/services/admin/pgadmin.nix | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/nixos/modules/services/admin/pgadmin.nix b/nixos/modules/services/admin/pgadmin.nix index 0fbc6a19a814..1e46d2794261 100644 --- a/nixos/modules/services/admin/pgadmin.nix +++ b/nixos/modules/services/admin/pgadmin.nix @@ -94,13 +94,7 @@ in }; emailServer = { - enable = lib.mkOption { - 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; - }; + enable = lib.mkEnableOption "SMTP email server. This is necessary, if you want to use password recovery or change your own password"; address = lib.mkOption { description = "SMTP server for email delivery"; type = lib.types.str; @@ -111,16 +105,8 @@ in type = lib.types.port; default = 25; }; - useSSL = lib.mkOption { - description = "SMTP server should use SSL"; - type = lib.types.bool; - default = false; - }; - useTLS = lib.mkOption { - description = "SMTP server should use TLS"; - type = lib.types.bool; - default = false; - }; + useSSL = lib.mkEnableOption "SSL for connecting to the SMTP server"; + useTLS = lib.mkEnableOption "TLS for connecting to the SMTP server"; username = lib.mkOption { description = "SMTP server username for email delivery"; type = lib.types.nullOr lib.types.str;