depot/third_party/home-manager/tests/modules/programs/irssi/example-settings.nix
Default email 2eafb8192e Project import generated by Copybara.
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
2023-01-10 02:35:00 -07:00

31 lines
627 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.irssi = {
enable = true;
networks.oftc = {
nick = "nick";
saslExternal = true;
server = {
address = "irc.oftc.net";
port = 6697;
autoConnect = true;
ssl.certificateFile =
"${config.home.homeDirectory}/.irssi/certs/nick.pem";
};
channels.home-manager.autoJoin = true;
};
};
test.stubs.irssi = { };
nmt.script = ''
assertFileContent \
home-files/.irssi/config \
${./example-settings-expected.config}
'';
};
}