nixos/tests/dnsdist: fix dnscrypt test

This commit is contained in:
rnhmjoj 2024-10-06 11:22:22 +02:00
parent 1eb9b5739d
commit cf614ee789
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450

View File

@ -64,7 +64,10 @@ in
networking.firewall.allowedTCPPorts = [ 443 ];
networking.firewall.allowedUDPPorts = [ 443 ];
services.dnsdist.dnscrypt.enable = true;
services.dnsdist.dnscrypt.providerKey = "${./dnscrypt-wrapper/secret.key}";
services.dnsdist.dnscrypt.providerKey = pkgs.runCommand "dnscrypt-secret.key" {} ''
echo 'R70+xqm7AaDsPtDgpSjSG7KHvEqVf6u6PZ+E3cGPbOwUQdg6/
RIIpK6pHkINhrv7nxwIG5c7b/m5NJVT3A1AXQ==' | base64 -id > "$out"
'';
}
];