2020-02-21 07:19:30 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
programs.lieer.enable = true;
|
2021-03-23 00:12:02 +00:00
|
|
|
programs.lieer.package = pkgs.writeScriptBin "dummy-gmailieer" "";
|
2020-02-21 07:19:30 +00:00
|
|
|
|
2020-12-30 16:20:47 +00:00
|
|
|
accounts.email.accounts."hm@example.com" = {
|
2021-02-07 20:52:16 +00:00
|
|
|
flavor = "gmail.com";
|
2020-12-30 16:20:47 +00:00
|
|
|
lieer.enable = true;
|
|
|
|
notmuch.enable = true;
|
|
|
|
};
|
2020-02-21 07:19:30 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
|
2021-03-23 00:12:02 +00:00
|
|
|
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json ${
|
|
|
|
./lieer-expected.json
|
|
|
|
}
|
2020-02-21 07:19:30 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|