aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/ngircd.nix
blob: f0f7d1e0800c06e11130ef2fd4e4e72efb046256 (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
{
  config,
  lib,
  ...
}: let
  cfg = config.collinux.services.ngircd;
in
  lib.mkIf cfg.enable {
    services.ngircd = {
      enable = true;
      config = ''
        [Global]
          Name = Ganymede IRC Chat

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

          PAM = yes
          PAMIsOptional = no

        [Operators]
          Name = collin
          Password =  # users authenticate with PAM
          Mask = *@*
      '';
    };
  }