1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-29 13:19:47 +01:00
home-manager/tests/modules/programs/irssi/example-settings.nix
Robert Helgesson e28a720ce9
irssi: fix test directory name
Also fix stub package name.
2021-10-30 20:40:49 +02:00

30 lines
598 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.irssi = {
enable = true;
networks.oftc = {
nick = "nick";
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}
'';
};
}