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:
parent
5a485ffa16
commit
0dd43e11e9
6 changed files with 129 additions and 11 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue