1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-06 05:13:28 +02:00
home-manager/tests/modules/programs/lieer/lieer.nix
Tad Fisher 514acaebb9
lieer: change settings to freeform type
Also add missing options.
2021-09-14 23:59:56 +02:00

26 lines
576 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
imports = [ ../../accounts/email-test-accounts.nix ];
config = {
programs.lieer.enable = true;
programs.lieer.package = pkgs.writeScriptBin "dummy-gmailieer" "";
accounts.email.accounts."hm@example.com" = {
flavor = "gmail.com";
lieer.enable = true;
notmuch.enable = true;
};
nmt.script = ''
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json ${
./lieer-expected.json
}
'';
};
}