about summary refs log tree commit diff
path: root/users/sterni/machines/ingeborg/irccat.nix
blob: 0c40f15e33a485b70218eed7fa677adeca71841c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ depot, config, pkgs, lib, ... }:

{
  imports = [
    (depot.path.origSrc + "/ops/modules/irccat.nix")
  ];

  config = {
    services.depot.irccat = {
      enable = true;
      secretsFile = builtins.toFile "empty.json" "{}"; # TODO(sterni): register
      config = {
        tcp.listen = ":4722"; # ircc
        irc = {
          server = "irc.hackint.org:6697";
          tls = true;
          nick = config.networking.hostName;
          realname = "irccat";
        };
      };
    };
  };
}