mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
22 lines
522 B
Nix
22 lines
522 B
Nix
{ config, ... }: {
|
|
services.nginx = { enable = true; };
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = config.var.git.email;
|
|
};
|
|
|
|
security.acme.certs."hadi.diy" = {
|
|
domain = "hadi.diy";
|
|
extraDomainNames = [ "*.hadi.diy" ];
|
|
group = "nginx";
|
|
|
|
dnsProvider = "cloudflare";
|
|
dnsPropagationCheck = true;
|
|
credentialsFile = config.sops.secrets.cloudflare-dns-token.path;
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
networking.firewall.allowedUDPPorts = [ 80 443 ];
|
|
}
|