home-manager/tests/modules/programs/notmuch/basic-config.nix
2020-01-26 11:25:12 +01:00

34 lines
631 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
imports = [ ../../accounts/email-test-accounts.nix ];
config = {
home.username = "hm-user";
home.homeDirectory = "/home/hm-user";
programs.notmuch = {
enable = true;
};
accounts.email.accounts = {
"hm@example.com" = {
notmuch.enable = true;
primary = true;
};
hm-account.notmuch = {
enable = true;
};
};
nmt.script = ''
assertFileExists home-files/.config/notmuch/notmuchrc
assertFileContent home-files/.config/notmuch/notmuchrc \
${./basic-config-expected.conf}
'';
};
}