mirror of
https://github.com/nix-community/home-manager
synced 2024-12-26 11:49:47 +01:00
472e67d1bb
Add support for `account.folders.(inbox|sent|draft)` in the himalaya account configuration. PR #2747
41 lines
736 B
Nix
41 lines
736 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
accounts.email.accounts = {
|
|
"hm@example.com" = {
|
|
himalaya = {
|
|
enable = true;
|
|
|
|
settings = { default-page-size = 50; };
|
|
};
|
|
|
|
folders = {
|
|
inbox = "In";
|
|
sent = "Out";
|
|
drafts = "Drafts";
|
|
};
|
|
|
|
imap.port = 995;
|
|
smtp.port = 465;
|
|
};
|
|
};
|
|
|
|
programs.himalaya = {
|
|
enable = true;
|
|
settings = { downloads-dir = "/data/download"; };
|
|
};
|
|
|
|
test.stubs.himalaya = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/himalaya/config.toml
|
|
assertFileContent home-files/.config/himalaya/config.toml ${
|
|
./himalaya-expected.toml
|
|
}
|
|
'';
|
|
}
|
|
|