mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
9fb1bb9794
Some properties were renamed. Big changes however include `backend` and `sender` enum options.
42 lines
792 B
Nix
42 lines
792 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
accounts.email.accounts = {
|
|
"hm@example.com" = {
|
|
himalaya = {
|
|
enable = true;
|
|
|
|
backend = "imap";
|
|
sender = "smtp";
|
|
settings = { email-listing-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
|
|
}
|
|
'';
|
|
}
|