2020-02-21 07:30:59 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
services.lieer.enable = true;
|
|
|
|
|
|
|
|
accounts.email.accounts = {
|
2021-02-07 20:52:16 +00:00
|
|
|
"hm@example.com" = {
|
|
|
|
flavor = "gmail.com";
|
|
|
|
lieer = {
|
|
|
|
enable = true;
|
|
|
|
sync.enable = true;
|
|
|
|
};
|
|
|
|
notmuch.enable = true;
|
|
|
|
};
|
2020-02-21 07:30:59 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
test.stubs.gmailieer = { };
|
2020-02-21 07:30:59 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/systemd/user/lieer-hm-example-com.service
|
|
|
|
assertFileExists home-files/.config/systemd/user/lieer-hm-example-com.timer
|
|
|
|
|
|
|
|
assertFileContent home-files/.config/systemd/user/lieer-hm-example-com.service \
|
|
|
|
${./lieer-service-expected.service}
|
|
|
|
assertFileContent home-files/.config/systemd/user/lieer-hm-example-com.timer \
|
|
|
|
${./lieer-service-expected.timer}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|