ctucx.git: nixfiles

ctucx' nixfiles

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

{

  dns.zones."ctu.cx".subdomains.grocy.CNAME = [ "${config.networking.fqdn}." ];

  services.grocy = {
    enable = true;
    hostName = "grocy.ctu.cx";

    nginx.enableSSL = false;

    settings = {
      currency       = "EUR";
      culture        = "de";
      calendar.firstDayOfWeek = 1;
    };
  };

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

}