feat: add halloy with a superbasic configuration

This commit is contained in:
Teesh 2026-02-01 23:15:23 +02:00
parent 2bb7ef34f9
commit a3e556464d
3 changed files with 48 additions and 17 deletions

View file

@ -0,0 +1,38 @@
{ config, ... }:
{
flake.modules.nixos.desktop = { pkgs, ... }: {
environment.systemPackages = [ pkgs.halloy ];
};
flake.modules.homeManager.desktop = { lib, ... }: {
programs.halloy = {
enable = true;
settings = {
buffer.channel.topic = {
enabled = true;
};
font.size = 20;
servers.${config.flake.meta.irc.server.name} = {
nickname = config.flake.meta.user.name;
server = config.flake.meta.irc.server.addr;
port = config.flake.meta.irc.server.port;
use_tls = false;
dangerously_accept_invalid_certs = true;
sasl.plain =
lib.mkIf (config.flake.meta.irc.server.isBouncer or false) {
username = config.flake.meta.user.name;
password = config.flake.meta.irc.password; # dont commit this yet, please use sops-nix
};
};
buffer.chathistory = {
infinite_scroll = true;
};
};
};
};
}

View file

@ -1,17 +0,0 @@
{ ... }:
{
flake.modules.nixos.desktop = { pkgs, ... }: {
environment.systemPackages = [ pkgs.senpai ];
};
flake.modules.homeManager.desktop = {
programs.senpai = {
enable = true;
config = {
address = "irc.libera.chat:6697";
nickname = "teesh3rt";
};
};
};
}

View file

@ -9,6 +9,16 @@ rec {
flake.meta.git.name = "teesh3rt";
flake.meta.irc = {
server = {
name = "bouncer";
addr = "192.168.1.200";
port = 6667;
isBouncer = true;
};
password = "password";
};
flake.meta.location = "/home/${flake.meta.user.name}/dotfiles";
flake.meta.stateVersion = "25.11";
}