1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 16:38:34 +02:00
home-manager/tests/modules/programs/irsii/example-settings.nix
Robert Helgesson cb09a968e9
tests: add option test.stubs
This option provides a more convenient way to overlay dummy packages.
It also adds a function `config.lib.test.mkStubPackage` that can,
e.g., be used for `package` options.
2021-09-26 23:26:38 +02:00

31 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.irsii = { };
nmt.script = ''
assertFileContent \
home-files/.irssi/config \
${./example-settings-expected.config}
'';
};
}