aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/ngircd.nix
blob: e7881828e3233a329029385ca14947d07183468c (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 = ${cfg.port}

          PAM = yes
          PAMIsOptional = no

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