2020-02-21 07:19:30 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
home.username = "hm-user";
|
|
|
|
home.homeDirectory = "/home/hm-user";
|
|
|
|
|
|
|
|
programs.lieer.enable = true;
|
|
|
|
|
|
|
|
accounts.email.accounts = { "hm@example.com".lieer.enable = true; };
|
|
|
|
|
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}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|