hexchat: add module
Review and contributions from Thiago Kenji Okada <thiagokokada@gmail.com>. Co-authored-by: Thiago Kenji Okada <thiagokokada@gmail.com> Co-authored-by: Nicolas Berbiche <nic.berbiche@gmail.com> Co-authored-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
parent
8278c14f5f
commit
406eeec0b9
9 changed files with 477 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
dcc_dir = /home/user/Downloads
|
||||
gui_quit_dialog = 0
|
||||
gui_slist_skip = 1
|
||||
irc_nick1 = user
|
||||
irc_nick2 = user_
|
||||
irc_nick3 = user__
|
||||
irc_real_name = real user
|
||||
irc_user_name = user
|
||||
text_font = Monospace 14
|
||||
text_font_main = Monospace 14
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
N=efnet
|
||||
L=
|
||||
F=4
|
||||
S=irc.choopa.net
|
||||
S=irc.colosolutions.net
|
||||
S=irc.mzima.net
|
||||
S=irc.prison.net
|
||||
J=#computers
|
||||
|
||||
N=freenode
|
||||
L=6
|
||||
E=UTF-8 (Unicode)
|
||||
F=12
|
||||
I=user
|
||||
i=user_
|
||||
R=real_user
|
||||
U=user
|
||||
P=password
|
||||
S=chat.freenode.net
|
||||
S=irc.freenode.net
|
||||
J=#home-manager
|
||||
J=#nixos
|
||||
|
||||
61
tests/modules/programs/hexchat/basic-configuration.nix
Normal file
61
tests/modules/programs/hexchat/basic-configuration.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.hexchat = {
|
||||
enable = true;
|
||||
overwriteConfigFiles = true;
|
||||
channels = {
|
||||
freenode = {
|
||||
charset = "UTF-8 (Unicode)";
|
||||
userName = "user";
|
||||
password = "password";
|
||||
loginMethod = "sasl";
|
||||
nickname = "user";
|
||||
nickname2 = "user_";
|
||||
realName = "real_user";
|
||||
options = {
|
||||
autoconnect = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
servers = [ "chat.freenode.net" "irc.freenode.net" ];
|
||||
autojoin = [ "#home-manager" "#nixos" ];
|
||||
};
|
||||
efnet = {
|
||||
options = { forceSSL = true; };
|
||||
servers = [
|
||||
"irc.choopa.net"
|
||||
"irc.colosolutions.net"
|
||||
"irc.mzima.net"
|
||||
"irc.prison.net"
|
||||
];
|
||||
autojoin = [ "#computers" ];
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
dcc_dir = "/home/user/Downloads";
|
||||
irc_nick1 = "user";
|
||||
irc_nick2 = "user_";
|
||||
irc_nick3 = "user__";
|
||||
irc_user_name = "user";
|
||||
irc_real_name = "real user";
|
||||
text_font = "Monospace 14";
|
||||
text_font_main = "Monospace 14";
|
||||
gui_slist_skip = "1"; # Skip network list on start-up
|
||||
gui_quit_dialog = "0";
|
||||
};
|
||||
};
|
||||
|
||||
test.stubs.hexchat = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/hexchat/hexchat.conf \
|
||||
${./basic-configuration-expected-main-config}
|
||||
assertFileContent \
|
||||
home-files/.config/hexchat/servlist.conf \
|
||||
${./basic-configuration-expected-serverlist-config}
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
1
tests/modules/programs/hexchat/default.nix
Normal file
1
tests/modules/programs/hexchat/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ hexchat-basic-configuration = ./basic-configuration.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue