nix-config/modules/home-manager/terminal/tiny-irc.nix

50 lines
1 KiB
Nix

{
config,
pkgs,
lib,
...
}: {
options.user.tiny.enable=lib.mkEnableOption "enable tiny irc client";
config=lib.mkIf config.user.tiny.enable {
programs.tiny = {
enable = true;
settings = {
servers = [
{
addr = "irc.libera.chat";
port = 6697;
tls = true;
realname = "Gabe Venberg";
nicks = ["toric"];
join = [
"#libera"
"#linux"
"#archlinux"
"#nixos"
"#neovim"
"##programming"
"##rust"
"#git"
"#kernel"
"#hardware"
"#lobsters"
"#gamingonlinux"
"##chat"
];
sasl = {
username = "toric";
pem = "${config.home.homeDirectory}/keys/certs/irc.pem";
};
}
];
defaults = {
# ignore join/leave messages
ignore = true;
nicks = ["toric"];
realname = "Gabe Venberg";
tls = true;
};
};
};
};}