mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 10:47:02 +00:00
Instead of having to manually stub packages that should not be downloaded we instead automatically stub all packages (except a small list of whitelisted ones). Tests can re-introduce the real package by using the `realPkgs` module argument.
22 lines
492 B
Nix
22 lines
492 B
Nix
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
accounts.email.accounts = {
|
|
"hm@example.com" = {
|
|
msmtp.enable = true;
|
|
neomutt.enable = true;
|
|
imap.port = 993;
|
|
};
|
|
};
|
|
|
|
programs.neomutt.enable = true;
|
|
programs.neomutt.unmailboxes = true;
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/neomutt/hm@example.com
|
|
assertFileContent home-files/.config/neomutt/hm@example.com ${
|
|
./hm-example.com-unmailboxes-expected.conf
|
|
}
|
|
'';
|
|
}
|
|
|