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