Improve the certificateScheme number deprecation warning message
This commit is contained in:
parent
7e09d8f537
commit
290d00f6db
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue