summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Eiche <lewo@abesis.fr>2023-06-06 23:24:53 +0200
committerlewo <lewo@abesis.fr>2023-06-11 07:29:18 +0000
commit290d00f6db4e80467013728819ad73dd4a394d9a (patch)
treefa0fb5afb7ee29aea40d3996452acb16c17f1ff7
parent7e09d8f537d2c95af57a3a9784d4daa83501a3a7 (diff)
Improve the certificateScheme number deprecation warning messagecert-warning
-rw-r--r--default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 49103f3..2dfbbfb 100644
--- a/default.nix
+++ b/default.nix
@@ -454,7 +454,7 @@ in
certificateScheme = let
schemes = [ "manual" "selfsigned" "acme-nginx" "acme" ];
- translate = i: warn "setting mailserver.certificateScheme by number is deprecated, please use names instead"
+ translate = i: warn "Setting mailserver.certificateScheme by number is deprecated, please use names instead: 'mailserver.certificateScheme = ${builtins.toString i}' can be replaced by 'mailserver.certificateScheme = \"${(builtins.elemAt schemes (i - 1))}\"'."
(builtins.elemAt schemes (i - 1));
in mkOption {
type = with types; coercedTo (enum [ 1 2 3 ]) translate (enum schemes);