2021-07-26 01:29:05 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
my = config.my;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
security.acme.acceptTerms = true;
|
2022-06-26 23:48:43 +02:00
|
|
|
security.acme.defaults.email = my.email;
|
2021-07-26 01:29:05 +02:00
|
|
|
|
2022-06-26 23:48:43 +02:00
|
|
|
security.acme.defaults.server =
|
2021-07-26 01:29:05 +02:00
|
|
|
if my.acmeStaging
|
|
|
|
then "https://acme-staging-v02.api.letsencrypt.org/directory"
|
|
|
|
else null;
|
|
|
|
}
|