nix-config/configs/home-manager/tiny-irc.nix
2024-12-02 17:59:26 +01:00

60 lines
1.2 KiB
Nix

{
config,
pkgs,
lib,
...
}: {
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"
"#zig"
"#git"
"#kernel"
"#hardware"
"#lobsters"
"#gamingonlinux"
"##chat"
];
sasl = lib.mkIf (lib.hasAttrByPath ["sops" "secrets" "irc-cert"] config) {
username = "toric";
pem = config.sops.secrets.irc-cert.path;
};
}
{
addr = "mbrserver.com";
port = 6667;
tls = false;
nicks = ["toric"];
realname = "Toric";
join = [
"#general"
"#spellware"
];
}
];
defaults = {
# ignore join/leave messages
ignore = true;
nicks = ["toric"];
realname = "Gabe Venberg";
# tls = true;
};
};
};
}