2023-12-28 15:32:47 +01:00
|
|
|
{ lib, config, inputs, pkgs, ... }:
|
|
|
|
let
|
|
|
|
root_host = "grimmauld.de";
|
2023-12-29 10:23:10 +01:00
|
|
|
root_email = "contact@${root_host}";
|
2023-12-28 15:32:47 +01:00
|
|
|
in {
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = root_email;
|
|
|
|
certs."${root_host}" = {
|
|
|
|
webroot = "/var/lib/acme/acme-challenge/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.nginx.extraGroups = [ "acme" ];
|
|
|
|
}
|