2021-06-27 00:29:42 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
accounts.email.accounts = {
|
|
|
|
"hm@example.com" = {
|
|
|
|
himalaya = {
|
|
|
|
enable = true;
|
2021-06-27 00:29:42 +02:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
settings = { default-page-size = 50; };
|
2021-06-27 00:29:42 +02:00
|
|
|
};
|
|
|
|
|
2022-02-21 23:20:44 +01:00
|
|
|
folders = {
|
|
|
|
inbox = "In";
|
|
|
|
sent = "Out";
|
|
|
|
drafts = "Drafts";
|
|
|
|
};
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
imap.port = 995;
|
|
|
|
smtp.port = 465;
|
2021-06-27 00:29:42 +02:00
|
|
|
};
|
2021-09-26 11:08:45 +02:00
|
|
|
};
|
2021-06-27 00:29:42 +02:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
programs.himalaya = {
|
|
|
|
enable = true;
|
|
|
|
settings = { downloads-dir = "/data/download"; };
|
2021-06-27 00:29:42 +02:00
|
|
|
};
|
2021-09-26 11:08:45 +02: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-27 00:29:42 +02:00
|
|
|
}
|
|
|
|
|