From cf614ee78918b2a84f0693f3e0a3d28465353a18 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 6 Oct 2024 11:22:22 +0200 Subject: [PATCH] nixos/tests/dnsdist: fix dnscrypt test --- nixos/tests/dnsdist.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/tests/dnsdist.nix b/nixos/tests/dnsdist.nix index 9921be419a75..33f25d019413 100644 --- a/nixos/tests/dnsdist.nix +++ b/nixos/tests/dnsdist.nix @@ -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" + ''; } ];