mirror of
https://github.com/nix-community/home-manager
synced 2024-08-15 08:36:30 +02:00
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.
26 lines
510 B
Nix
26 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
|
|
}
|
|
'';
|
|
};
|
|
}
|