From 290d00f6db4e80467013728819ad73dd4a394d9a Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Tue, 6 Jun 2023 23:24:53 +0200 Subject: [PATCH] Improve the certificateScheme number deprecation warning message --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);