nix-config/configs/home-manager/tiny-irc.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

{
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"
2024-04-17 20:11:02 +02:00
"#archlinux"
"#nixos"
"#neovim"
2024-04-01 00:58:48 +02:00
"##programming"
"##rust"
2024-12-02 17:59:26 +01:00
"#zig"
2024-03-31 23:23:56 +02:00
"#git"
"#kernel"
2024-04-01 00:58:48 +02:00
"#hardware"
"#lobsters"
2024-03-31 23:23:56 +02:00
"#gamingonlinux"
2024-04-17 20:11:02 +02:00
"##chat"
];
sasl = lib.mkIf (lib.hasAttrByPath ["sops" "secrets" "irc-cert"] config) {
2024-03-31 23:23:56 +02:00
username = "toric";
2024-06-04 18:00:43 +02:00
pem = config.sops.secrets.irc-cert.path;
};
}
2024-11-13 13:23:01 +01:00
{
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";
2024-11-13 13:23:01 +01:00
# tls = true;
};
};
};
}