aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/agate.nix
blob: f1593e68d9a6d5daeda7751f595b23f79524aa50 (plain)
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];
  }