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 = {
|
|
|
|
"hm@example.com".lieer.enable = true;
|
|
|
|
"hm@example.com".lieer.sync.enable = true;
|
2020-12-30 17:20:47 +01:00
|
|
|
"hm@example.com".notmuch.enable = true;
|
2020-02-21 08:30:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
2020-03-07 15:31:07 +01:00
|
|
|
gmailieer = pkgs.writeScriptBin "dummy-gmailieer" "" // {
|
|
|
|
outPath = "@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}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|