forked from fabian/nix
42 lines
852 B
Nix
42 lines
852 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.local.apps.halloy;
|
|
in {
|
|
options.local.apps.halloy = {
|
|
enable = mkEnableOption "halloy irc client";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
programs.halloy = {
|
|
enable = true;
|
|
settings = {
|
|
buffer = {
|
|
channel.topic = {
|
|
enabled = true;
|
|
};
|
|
chathistory.infinite_scroll = true;
|
|
};
|
|
|
|
servers.liberachat = {
|
|
nickname = "posixlycorrect";
|
|
nick_password_command = "pass show liberachat_irc";
|
|
|
|
username = "fabiansoju/irc.libera.chat";
|
|
password_command = "pass show soju";
|
|
|
|
server = "soju.posixlycorrect.com";
|
|
port = 6697;
|
|
chathistory = true;
|
|
channels = [
|
|
"#lobsters"
|
|
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|