himalaya: add module
A very simple TUI mail client.
This commit is contained in:
parent
8eee5f5272
commit
8d3b273afe
9 changed files with 173 additions and 1 deletions
1
tests/modules/programs/himalaya/default.nix
Normal file
1
tests/modules/programs/himalaya/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ himalaya = ./himalaya.nix; }
|
||||
18
tests/modules/programs/himalaya/himalaya-expected.toml
Normal file
18
tests/modules/programs/himalaya/himalaya-expected.toml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
downloads-dir = "/data/download"
|
||||
name = ""
|
||||
|
||||
["hm@example.com"]
|
||||
default = true
|
||||
default-page-size = 50
|
||||
email = "hm@example.com"
|
||||
imap-host = "imap.example.com"
|
||||
imap-login = "home.manager"
|
||||
imap-passwd-cmd = "'password-command'"
|
||||
imap-port = 995
|
||||
imap-starttls = false
|
||||
name = "H. M. Test"
|
||||
smtp-host = "smtp.example.com"
|
||||
smtp-login = "home.manager"
|
||||
smtp-passwd-cmd = "'password-command'"
|
||||
smtp-port = 465
|
||||
smtp-starttls = false
|
||||
38
tests/modules/programs/himalaya/himalaya.nix
Normal file
38
tests/modules/programs/himalaya/himalaya.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ 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
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue