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