cb09a968e9
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.
31 lines
598 B
Nix
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}
|
|
'';
|
|
};
|
|
}
|