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
|
|
|
};
|
|
|
|
|
|
|
|
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}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|