1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 10:49:44 +01:00
home-manager/tests/modules/programs/himalaya/himalaya.nix

42 lines
736 B
Nix
Raw Normal View History

{ 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
}
'';
}