add dkimKeyBits configuration

This commit is contained in:
Joey Hewitt 2019-06-29 17:56:22 -06:00
parent 7e718e0e33
commit f789f7a80c
3 changed files with 19 additions and 0 deletions

View file

@ -422,6 +422,19 @@ in
'';
};
dkimKeyBits = mkOption {
type = types.int;
default = 1024;
description = ''
How many bits in generated DKIM keys. RFC6376 advises minimum 1024-bit keys.
If you have already deployed a key with a different number of bits than specified
here, then you should use a different selector (dkimSelector). In order to get
this package to generate a key with the new number of bits, you will either have to
change the selector or delete the old key file.
'';
};
debug = mkOption {
type = types.bool;
default = false;