mirror of
https://github.com/nix-community/home-manager
synced 2024-12-19 00:09:48 +01:00
6abb775e75
* himalaya: add soywod to maintainers * himalaya: make the config safer Also added two services and more tests. * himalaya: fix doc + typos * himalaya: use freeform * himalaya: run ./format * himalaya: make use of mkPackageOption
37 lines
788 B
Nix
37 lines
788 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
accounts.email.accounts = {
|
|
"hm@example.com" = {
|
|
primary = true;
|
|
address = "hm@example.com";
|
|
userName = "home.manager";
|
|
realName = "H. M. Test";
|
|
passwordCommand = "password-command";
|
|
folders = { trash = "Deleted"; };
|
|
himalaya = {
|
|
enable = true;
|
|
settings = {
|
|
sender = "sendmail";
|
|
sendmail-cmd = "msmtp";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.himalaya = {
|
|
enable = true;
|
|
settings = { email-listing-page-size = 50; };
|
|
};
|
|
|
|
test.stubs.himalaya = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/himalaya/config.toml
|
|
assertFileContent home-files/.config/himalaya/config.toml ${
|
|
./maildir-sendmail-expected.toml
|
|
}
|
|
'';
|
|
}
|