2020-04-24 23:36:52 +00:00
|
|
|
{ lib, nodes, pkgs, ... }:
|
|
|
|
let
|
2020-09-25 04:45:31 +00:00
|
|
|
caCert = nodes.acme.config.test-support.acme.caCert;
|
|
|
|
caDomain = nodes.acme.config.test-support.acme.caDomain;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
in {
|
2020-04-24 23:36:52 +00:00
|
|
|
security.acme = {
|
2020-09-25 04:45:31 +00:00
|
|
|
server = "https://${caDomain}/dir";
|
2020-04-24 23:36:52 +00:00
|
|
|
email = "hostmaster@example.test";
|
|
|
|
acceptTerms = true;
|
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
security.pki.certificateFiles = [ caCert ];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|