mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 08:49:44 +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.
25 lines
510 B
Nix
25 lines
510 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
accounts.email.accounts = {
|
|
"hm@example.com".maildir = null;
|
|
hm-account.neomutt.enable = true;
|
|
};
|
|
|
|
programs.neomutt.enable = true;
|
|
|
|
test.stubs.neomutt = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/neomutt/neomuttrc
|
|
assertFileContent home-files/.config/neomutt/neomuttrc ${
|
|
./neomutt-not-primary-expected.conf
|
|
}
|
|
'';
|
|
};
|
|
}
|