95b95b1407
Before the XDG variables would be set from the user's environment, if available. This would break some tests. With this change the tests should be fully deterministic. Fixes #1190
24 lines
560 B
Nix
24 lines
560 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
programs.lieer.enable = true;
|
|
|
|
accounts.email.accounts = { "hm@example.com".lieer.enable = true; };
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: { gmailieer = pkgs.writeScriptBin "dummy-gmailieer" ""; })
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
|
|
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json \
|
|
${./lieer-expected.json}
|
|
'';
|
|
};
|
|
}
|