2023-05-12 22:08:12 +00:00
|
|
|
{ ... }:
|
2020-02-21 07:30:59 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
services.lieer.enable = true;
|
2020-02-21 07:30:59 +00:00
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
accounts.email.accounts = {
|
|
|
|
"hm@example.com" = {
|
|
|
|
flavor = "gmail.com";
|
|
|
|
lieer = {
|
|
|
|
enable = true;
|
|
|
|
sync.enable = true;
|
2021-02-07 20:52:16 +00:00
|
|
|
};
|
2023-05-12 22:08:12 +00:00
|
|
|
notmuch.enable = true;
|
2020-02-21 07:30:59 +00:00
|
|
|
};
|
2023-05-12 22:08:12 +00:00
|
|
|
};
|
2020-02-21 07:30:59 +00:00
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
test.stubs.lieer = { };
|
2020-02-21 07:30:59 +00:00
|
|
|
|
2023-05-12 22:08:12 +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
|
2020-02-21 07:30:59 +00:00
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
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}
|
|
|
|
'';
|
2020-02-21 07:30:59 +00:00
|
|
|
}
|