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
|
|
|
};
|
|
|
|
|
2022-10-03 09:50:40 +02:00
|
|
|
test.stubs.lieer = { };
|
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}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|