about summary refs log tree commit diff
path: root/profiles/acme.nix
blob: 7fc62d3e21322762db3fe6493dce6bb0b784791b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs, lib, config, ... }:
let
  secrets = config.age.secrets;
in
{
  security.acme.acceptTerms = true;
  security.acme.defaults = {
    email = "le@fcuny.net";
    dnsProvider = "gandiv5";
    group = config.services.nginx.group;
    credentialsFile = secrets."gandi/apikey".path;
    dnsPropagationCheck = true;
  };
  security.acme.certs."${config.homelab.domain}" = {
    domain = "*.${config.homelab.domain}";
    extraDomainNames = [ config.homelab.domain ];
  };
}