36 lines
975 B
Nix
36 lines
975 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
||
|
|
||
|
config = {
|
||
|
home.username = "hm-user";
|
||
|
home.homeDirectory = "/home/hm-user";
|
||
|
|
||
|
services.lieer.enable = true;
|
||
|
|
||
|
accounts.email.accounts = {
|
||
|
"hm@example.com".lieer.enable = true;
|
||
|
"hm@example.com".lieer.sync.enable = true;
|
||
|
};
|
||
|
|
||
|
nixpkgs.overlays = [
|
||
|
(self: super: {
|
||
|
gmailieer = super.gmailieer // { outPath = "@lieer@"; };
|
||
|
})
|
||
|
];
|
||
|
|
||
|
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}
|
||
|
'';
|
||
|
};
|
||
|
}
|