mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +01:00
39 lines
767 B
Nix
39 lines
767 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
||
|
|
||
|
config = {
|
||
|
accounts.email.accounts = {
|
||
|
"hm@example.com" = {
|
||
|
himalaya = {
|
||
|
enable = true;
|
||
|
|
||
|
settings = { default-page-size = 50; };
|
||
|
};
|
||
|
|
||
|
imap.port = 995;
|
||
|
smtp.port = 465;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
programs.himalaya = {
|
||
|
enable = true;
|
||
|
settings = { downloads-dir = "/data/download"; };
|
||
|
};
|
||
|
|
||
|
nixpkgs.overlays =
|
||
|
[ (self: super: { himalaya = pkgs.writeScriptBin "dummy-alot" ""; }) ];
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.config/himalaya/config.toml
|
||
|
assertFileContent home-files/.config/himalaya/config.toml ${
|
||
|
./himalaya-expected.toml
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
}
|
||
|
|