1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 02:57:44 +00:00

chore: migrate nginx and site

This commit is contained in:
RGBCube 2025-02-23 00:35:35 +03:00
parent 5a485ffa16
commit 0dd43e11e9
6 changed files with 129 additions and 11 deletions

View file

@ -2,10 +2,12 @@
inherit (config.networking) domain;
inherit (lib) mkValue;
in {
options.acmeGroup = mkValue "nginx";
options.acmeUsers = mkValue [];
config.secrets.acmeEnvironment.file = ./environment.age;
config.users.groups.acme.members = config.acmeUsers;
config.security.acme = {
acceptTerms = true;
@ -18,7 +20,7 @@ in {
certs.${domain} = {
extraDomainNames = [ "*.${domain}" ];
group = config.acmeGroup;
group = "acme";
};
};
}