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 = {
|
|
|
|
acceptTerms = true;
|
2021-12-30 13:39:12 +00:00
|
|
|
defaults = {
|
|
|
|
server = "https://${caDomain}/dir";
|
|
|
|
email = "hostmaster@example.test";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
security.pki.certificateFiles = [ caCert ];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|