mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 02:14:08 +00:00
17 lines
331 B
Nix
17 lines
331 B
Nix
{ nodes, ... }:
|
|
let
|
|
caCert = nodes.acme.test-support.acme.caCert;
|
|
caDomain = nodes.acme.test-support.acme.caDomain;
|
|
|
|
in {
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults = {
|
|
server = "https://${caDomain}/dir";
|
|
email = "hostmaster@example.test";
|
|
};
|
|
};
|
|
|
|
security.pki.certificateFiles = [ caCert ];
|
|
}
|