2021-07-02 22:36:30 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
accounts.email.accounts = {
|
|
|
|
"hm@example.com" = {
|
|
|
|
himalaya = {
|
|
|
|
enable = true;
|
2021-07-02 22:36:30 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
settings = { default-page-size = 50; };
|
2021-07-02 22:36:30 +00:00
|
|
|
};
|
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
imap.port = 995;
|
|
|
|
smtp.port = 465;
|
2021-07-02 22:36:30 +00:00
|
|
|
};
|
2021-11-04 16:42:44 +00:00
|
|
|
};
|
2021-07-02 22:36:30 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
programs.himalaya = {
|
|
|
|
enable = true;
|
|
|
|
settings = { downloads-dir = "/data/download"; };
|
2021-07-02 22:36:30 +00:00
|
|
|
};
|
2021-11-04 16:42:44 +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-07-02 22:36:30 +00:00
|
|
|
}
|
|
|
|
|