2020-02-21 08:30:59 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
services.lieer.enable = true;
|
|
|
|
|
|
|
|
accounts.email.accounts = {
|
2021-02-07 21:52:16 +01:00
|
|
|
"hm@example.com" = {
|
|
|
|
flavor = "gmail.com";
|
|
|
|
lieer = {
|
|
|
|
enable = true;
|
|
|
|
sync.enable = true;
|
|
|
|
};
|
|
|
|
notmuch.enable = true;
|
|
|
|
};
|
2020-02-21 08:30:59 +01:00
|
|
|
};
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
test.stubs.gmailieer = { };
|
2020-02-21 08:30:59 +01: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}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|