nixos/acme: Add data.email to othersHash in nixos > 20.09
This commit is contained in:
parent
76401c9a3b
commit
79ecf069f5
1 changed files with 6 additions and 1 deletions
|
@ -104,7 +104,12 @@ let
|
|||
mkHash = with builtins; val: substring 0 20 (hashString "sha256" val);
|
||||
certDir = mkHash hashData;
|
||||
domainHash = mkHash "${concatStringsSep " " extraDomains} ${data.domain}";
|
||||
othersHash = mkHash "${toString acmeServer} ${data.keyType}";
|
||||
othersHash = mkHash (
|
||||
"${toString acmeServer} ${data.keyType}"
|
||||
+ (
|
||||
optionalString (versionOlder "20.09" config.system.stateVersion) data.email
|
||||
)
|
||||
);
|
||||
accountDir = "/var/lib/acme/.lego/accounts/" + othersHash;
|
||||
|
||||
protocolOpts = if useDns then (
|
||||
|
|
Loading…
Reference in a new issue