{ pkgs, lib, config, ... }:
{
programs.irssi.enable = true;
home.file.".irssi/default.theme".source = irssi/default.theme;
home.file.".irssi/startup".text = ''
  load otr
'';
home.file.".irssi/scripts/autorun/urlinfo.pl".source = pkgs.fetchurl {
  meta.description = "Irssi dynamic password scriphort summaries about URLs from known services that are mentioned on IRC. (Including YouTube, etc.)";
  url = "https://scripts.irssi.org/scripts/urlinfo.pl";
  sha256 = "sha256-bDgk1cbNwKSX3AmW/8P0G6SlpVurh7SBCgkxCwfMpGo=";
};
home.file.".irssi/scripts/autorun/passwd.pl".source = pkgs.fetchurl {
  meta.description = "Irssi dynamic password script";
  url = "https://raw.githubusercontent.com/gandalf3/irssi-passwd/master/passwd.pl";
  sha256 = "1m2lyv3kghhgccjwgnrrj4s57x7d0p6yvzfvfc8xq1kdvvp2rngj";
};
home.file.".irssi/scripts/autorun/adv_windowlist.pl".source = pkgs.fetchurl {
  meta.description = "Irssi advanced window list";
  url = "https://raw.githubusercontent.com/irssi/scripts.irssi.org/master/scripts/adv_windowlist.pl";
  sha256 = "sha256-V91x964GIL5bh+fuOg7OrlK1Bv3jwqhESi/n/Hvdn7c=";
};
home.file.".irssi/scripts/autorun/nickcolor.pl".source = pkgs.fetchurl {
  meta.description = "Irssi nick color";
  url = "https://raw.githubusercontent.com/irssi/scripts.irssi.org/master/scripts/nickcolor.pl";
  sha256 = "1imn2ryxq8j7d2iy8cyjnzri83flkz7f34xx8cfj0hlijgqbbir1";
};
}