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

48 lines
986 B
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 13:11:02 -05:00
"#archlinux"
"#nixos"
"#neovim"
2024-03-31 17:58:48 -05:00
"##programming"
"##rust"
2024-03-31 16:23:56 -05:00
"#git"
"#kernel"
2024-03-31 17:58:48 -05:00
"#hardware"
"#lobsters"
2024-03-31 16:23:56 -05:00
"#gamingonlinux"
2024-04-17 13:11:02 -05:00
"##chat"
];
sasl = lib.mkIf (lib.hasAttrByPath ["sops" "secrets" "irc-cert"] config) {
2024-03-31 16:23:56 -05:00
username = "toric";
2024-06-04 11:00:43 -05:00
pem = config.sops.secrets.irc-cert.path;
};
}
];
defaults = {
# ignore join/leave messages
ignore = true;
nicks = ["toric"];
realname = "Gabe Venberg";
tls = true;
};
};
};
}