2024-02-01 00:04:04 +01:00
|
|
|
# Catgirl is a terminal based irc client
|
2024-02-09 19:18:33 +01:00
|
|
|
{ config, pkgs, lib, hostname ? "hermes", ... }:
|
2024-02-01 00:04:04 +01:00
|
|
|
let
|
|
|
|
mkCatgirlNetwork = network: ''
|
|
|
|
host = ${network}.irc.moonythm.dev
|
|
|
|
save = ${network}
|
2024-02-02 02:42:03 +01:00
|
|
|
user = ${hostname}
|
2024-02-01 00:04:04 +01:00
|
|
|
port = 6697
|
|
|
|
'';
|
2024-02-09 19:18:33 +01:00
|
|
|
|
|
|
|
# prints an irc message in rainbow text
|
|
|
|
ircgay = pkgs.writeShellScriptBin "ircgay" ''
|
|
|
|
${lib.getExe pkgs.toilet} -f term --irc --gay "$*"
|
|
|
|
'';
|
2024-02-01 00:04:04 +01:00
|
|
|
in
|
|
|
|
{
|
2024-02-09 19:18:33 +01:00
|
|
|
home.packages = [ ircgay pkgs.catgirl ];
|
2024-02-01 00:04:04 +01:00
|
|
|
xdg.configFile."catgirl/tilde".text = mkCatgirlNetwork "tilde";
|
2024-02-26 12:56:54 +01:00
|
|
|
satellite.persistence.at.state.apps.catgirl.directories =
|
|
|
|
[ "${config.xdg.dataHome}/catgirl" ];
|
2024-02-01 00:04:04 +01:00
|
|
|
}
|