1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-07 22:03:27 +02:00
home-manager/tests/modules/programs/himalaya/maildir-sendmail.nix

38 lines
788 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
accounts.email.accounts = {
"hm@example.com" = {
primary = true;
address = "hm@example.com";
userName = "home.manager";
realName = "H. M. Test";
passwordCommand = "password-command";
folders = { trash = "Deleted"; };
himalaya = {
enable = true;
settings = {
sender = "sendmail";
sendmail-cmd = "msmtp";
};
};
};
};
programs.himalaya = {
enable = true;
settings = { email-listing-page-size = 50; };
};
test.stubs.himalaya = { };
nmt.script = ''
assertFileExists home-files/.config/himalaya/config.toml
assertFileContent home-files/.config/himalaya/config.toml ${
./maildir-sendmail-expected.toml
}
'';
}