2021-06-26 22:29:42 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2021-09-26 09:08:45 +00:00
|
|
|
accounts.email.accounts = {
|
|
|
|
"hm@example.com" = {
|
2023-05-04 10:28:08 +00:00
|
|
|
primary = true;
|
|
|
|
address = "hm@example.com";
|
|
|
|
userName = "home.manager";
|
|
|
|
realName = "H. M. Test";
|
|
|
|
passwordCommand = "password-command";
|
|
|
|
folders = { trash = "Deleted"; };
|
2021-09-26 09:08:45 +00:00
|
|
|
himalaya = {
|
|
|
|
enable = true;
|
2023-05-04 10:28:08 +00:00
|
|
|
settings = {
|
|
|
|
sender = "sendmail";
|
|
|
|
sendmail-cmd = "msmtp";
|
|
|
|
};
|
2021-06-26 22:29:42 +00:00
|
|
|
};
|
|
|
|
};
|
2021-09-26 09:08:45 +00:00
|
|
|
};
|
2021-06-26 22:29:42 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
programs.himalaya = {
|
|
|
|
enable = true;
|
2023-05-04 10:28:08 +00:00
|
|
|
settings = { email-listing-page-size = 50; };
|
2021-06-26 22:29:42 +00:00
|
|
|
};
|
2021-09-26 09:08:45 +00:00
|
|
|
|
|
|
|
test.stubs.himalaya = { };
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/himalaya/config.toml
|
|
|
|
assertFileContent home-files/.config/himalaya/config.toml ${
|
2023-05-04 10:28:08 +00:00
|
|
|
./maildir-sendmail-expected.toml
|
2021-09-26 09:08:45 +00:00
|
|
|
}
|
|
|
|
'';
|
2021-06-26 22:29:42 +00:00
|
|
|
}
|