summaryrefslogtreecommitdiff
path: root/hosts/cirrus/irc.nix
blob: 7262b994f7458d22fddda86989d52ce564f1d151 (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
{ pkgs, config, ... }: {
  containers.irc = {
    autoStart = true;
    privateNetwork = true;
    localAddress = "10.34.44.100/24";

    config = { config, pkgs, ... }: {
      services.soju = {
        hostname = "mr_bouncy.oxapentane.com";
        enable = true;
        enableMessageLogging = true;
        acceptProxyIP = [
          "192.168.100.1"
        ];
      };

      networking.firewall = {
        enable = true;
        allowedTCPPorts = [ 6697 22 ];
      };

      system.stateVersion = "22.11";
    };
  };
}