mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 17:19:45 +01:00
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.
30 lines
598 B
Nix
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.irsii = { };
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.irssi/config \
|
|
${./example-settings-expected.config}
|
|
'';
|
|
};
|
|
}
|