himalaya: add module

A very simple TUI mail client.
This commit is contained in:
Bruno BELANYI 2021-06-27 00:29:42 +02:00 committed by GitHub
parent 8eee5f5272
commit 8d3b273afe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 173 additions and 1 deletions

View file

@ -0,0 +1 @@
{ himalaya = ./himalaya.nix; }

View 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

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