1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
{ lib, config, ... }: let cfg = config.collinux.services.agate; in lib.mkIf cfg.enable { services.agate = { enable = true; addresses = [ "0.0.0.0:1965" ]; hostnames = [cfg.publicUrl]; onlyTls_1_3 = true; contentDir = "/media/public/gmi"; }; networking.firewall.allowedTCPPorts = [1965]; }