75fa0ae5af
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
36 lines
795 B
Nix
36 lines
795 B
Nix
{ 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"; };
|
|
notmuch.enable = true;
|
|
msmtp.enable = true;
|
|
himalaya = {
|
|
enable = true;
|
|
settings = { 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 ${
|
|
./notmuch-sendmail-expected.toml
|
|
}
|
|
'';
|
|
}
|