2024-05-08 21:50:08 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-08 21:49:37 +02:00
|
|
|
let
|
|
|
|
inherit (config.networking) domain;
|
|
|
|
root_email = "contact@${domain}";
|
2024-05-08 21:50:08 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-08 21:49:37 +02:00
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = root_email;
|
|
|
|
certs."${domain}" = {
|
|
|
|
webroot = "/var/lib/acme/acme-challenge/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.nginx.extraGroups = [ "acme" ];
|
|
|
|
}
|