about summary refs log tree commit diff stats
path: root/tests/by-name/em/email-dns/nodes/acme/client.nix
blob: 2b870e8935d267a28f637fa7953e3be33b2270d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  nodes,
  lib,
  ...
}: let
  inherit (nodes.acme.test-support.acme) caCert;
  inherit (nodes.acme.test-support.acme) caDomain;
in {
  security = {
    acme = {
      acceptTerms = true;
      defaults = {
        server = "https://${caDomain}/dir";
      };
    };

    pki = {
      certificateFiles = lib.mkForce [caCert];
    };
  };
}