2021-06-06 23:31:25 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.irssi = {
|
|
|
|
enable = true;
|
|
|
|
networks.oftc = {
|
|
|
|
nick = "nick";
|
2022-10-29 16:58:14 +02:00
|
|
|
saslExternal = true;
|
2021-06-06 23:31:25 +02:00
|
|
|
server = {
|
|
|
|
address = "irc.oftc.net";
|
|
|
|
port = 6697;
|
|
|
|
autoConnect = true;
|
|
|
|
ssl.certificateFile =
|
|
|
|
"${config.home.homeDirectory}/.irssi/certs/nick.pem";
|
|
|
|
};
|
|
|
|
channels.home-manager.autoJoin = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-10-30 20:40:49 +02:00
|
|
|
test.stubs.irssi = { };
|
2021-09-26 11:08:45 +02:00
|
|
|
|
2021-06-06 23:31:25 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.irssi/config \
|
|
|
|
${./example-settings-expected.config}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|