mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
21f183a3fe
The resolver is mainly useful for the ACME server, and acme.nix uses its own DNS server to test DNS-01 challenges.
16 lines
270 B
Nix
16 lines
270 B
Nix
{ lib, nodes, pkgs, ... }:
|
|
|
|
let
|
|
acme-ca = nodes.acme.config.test-support.acme.caCert;
|
|
in
|
|
|
|
{
|
|
security.acme = {
|
|
server = "https://acme.test/dir";
|
|
email = "hostmaster@example.test";
|
|
acceptTerms = true;
|
|
};
|
|
|
|
security.pki.certificateFiles = [ acme-ca ];
|
|
}
|