zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
{
  machineConfig,
  config,
  lib,
  ...
}:

{

  options.zpha.websites."ctu.cx".enable = lib.mkEnableOption "";

  config = lib.mkIf config.zpha.websites."ctu.cx".enable {
    dns.zones."ctu.cx".AAAA = lib.singleton machineConfig.networking.ip6Address;

    services.nginx.virtualHosts."ctu.cx" = {
      useACMEHost = "${config.networking.fqdn}";
      forceSSL = true;
      kTLS = true;
    };
  };

}