2020-02-21 07:19:30 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
programs.lieer.enable = true;
|
|
|
|
|
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
|
|
|
|
2020-03-07 14:31:07 +00:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: { gmailieer = pkgs.writeScriptBin "dummy-gmailieer" ""; })
|
|
|
|
];
|
|
|
|
|
2020-02-21 07:19:30 +00:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
|
|
|
|
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json \
|
|
|
|
${./lieer-expected.json}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|