mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 16:59:43 +01:00
d059b9448a
mujmap is a tool that synchronizes mail between a mail server and notmuch via JMAP. It's very similar to lieer, so I heavily based the implementation of the notmuch module on lieer's. I did not include an equivalent to lieer's periodic synchronization service, however, because I plan to soon introduce a daemon mode to mujmap. https://github.com/elizagamedev/mujmap
25 lines
579 B
Nix
25 lines
579 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
programs.mujmap.enable = true;
|
|
programs.mujmap.package = config.lib.test.mkStubPackage { };
|
|
|
|
accounts.email.accounts."hm@example.com" = {
|
|
jmap.host = "example.com";
|
|
mujmap.enable = true;
|
|
notmuch.enable = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/Mail/hm@example.com/mujmap.toml
|
|
assertFileContent home-files/Mail/hm@example.com/mujmap.toml ${
|
|
./mujmap-defaults-expected.toml
|
|
}
|
|
'';
|
|
};
|
|
}
|