aboutsummaryrefslogtreecommitdiff
path: root/users/tdback/modules/irc/default.nix
blob: 6ecf31fd159a4df2810026fe8c340d6084077bae (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
{
  config,
  ...
}:
{
  programs.irssi = {
    enable = true;
    extraConfig = ''
      settings = { core = { real_name = "${config.home.username}"; }; };
    '';
    networks = {
      liberachat = {
        nick = config.home.username;
        saslExternal = true;
        server = {
          address = "irc.libera.chat";
          port = 6697;
          autoConnect = true;
          ssl = {
            enable = true;
            verify = true;
            certificateFile = "/home/${config.home.username}/.irssi/certs/libera.pem";
          };
        };
      };
    };
  };
}