aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/ngircd.nix
blob: d06a49775557883e71c04f53ba2daeb2f6a83277 (plain)
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
27
28
29
30
31
32
33
{
  config,
  lib,
  ...
}: let
  cfg = config.collinux.services.ngircd;
in
  lib.mkIf cfg.enable {
    networking.firewall.allowedTCPPorts = [cfg.port];

    services.ngircd = {
      enable = true;
      config = ''
        [Global]
          Name = williamsfam.us.com
          Info = Ganymede IRC Chat
          AdminInfo1 = Collin

          Listen = 0.0.0.0
          Ports = ${toString cfg.port}

        [Channel]
          Name = #general
          AutoJoin = yes

        [Options]
          RequireAuth = no
          Ident = no
          AllowedHosts = *
          PAM = no
      '';
    };
  }