2020-03-23 21:35:16 +01:00
|
|
|
{ lib, nodes, pkgs, ... }:
|
|
|
|
let
|
2020-06-19 21:27:46 +02:00
|
|
|
caCert = nodes.acme.config.test-support.acme.caCert;
|
|
|
|
caDomain = nodes.acme.config.test-support.acme.caDomain;
|
2020-03-23 21:35:16 +01:00
|
|
|
|
2020-06-19 21:27:46 +02:00
|
|
|
in {
|
2020-03-23 21:35:16 +01:00
|
|
|
security.acme = {
|
2020-06-19 21:27:46 +02:00
|
|
|
server = "https://${caDomain}/dir";
|
2020-03-23 21:35:16 +01:00
|
|
|
email = "hostmaster@example.test";
|
|
|
|
acceptTerms = true;
|
|
|
|
};
|
|
|
|
|
2020-06-19 21:27:46 +02:00
|
|
|
security.pki.certificateFiles = [ caCert ];
|
2020-03-23 21:35:16 +01:00
|
|
|
}
|