Modularize GY config
This commit is contained in:
parent
15b909473e
commit
cd03afb425
8 changed files with 109 additions and 26 deletions
16
hosts/greatyamada/services/acme.nix
Normal file
16
hosts/greatyamada/services/acme.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }: {
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "aveeryy@protonmail.com";
|
||||
certs."rcia.dev" = {
|
||||
credentialFiles.CLOUDFLARE_DNS_API_TOKEN_FILE =
|
||||
"/run/secrets/cloudflare_api_token";
|
||||
dnsProvider = "cloudflare";
|
||||
extraDomainNames = [ "*.rcia.dev" ];
|
||||
};
|
||||
};
|
||||
sops.secrets."cloudflare/api_token" = {
|
||||
path = "/run/secrets/cloudflare_api_token";
|
||||
group = "root";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue