feat: add halloy with a superbasic configuration
This commit is contained in:
parent
2bb7ef34f9
commit
a3e556464d
3 changed files with 48 additions and 17 deletions
38
modules/desktop/apps/halloy.nix
Normal file
38
modules/desktop/apps/halloy.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue