2021-06-26 22:29:42 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
accounts.email.accounts = {
|
|
|
|
"hm@example.com" = {
|
|
|
|
himalaya = {
|
|
|
|
enable = true;
|
2021-06-26 22:29:42 +00:00
|
|
|
|
2022-10-16 08:25:31 +00:00
|
|
|
backend = "imap";
|
|
|
|
sender = "smtp";
|
|
|
|
settings = { email-listing-page-size = 50; };
|
2021-06-26 22:29:42 +00:00
|
|
|
};
|
|
|
|
|
2022-02-21 22:20:44 +00:00
|
|
|
folders = {
|
|
|
|
inbox = "In";
|
|
|
|
sent = "Out";
|
|
|
|
drafts = "Drafts";
|
|
|
|
};
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
imap.port = 995;
|
|
|
|
smtp.port = 465;
|
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;
|
|
|
|
settings = { downloads-dir = "/data/download"; };
|
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 ${
|
|
|
|
./himalaya-expected.toml
|
|
|
|
}
|
|
|
|
'';
|
2021-06-26 22:29:42 +00:00
|
|
|
}
|