mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 19:13:27 +00:00
ef4370bedc
By default tests are expected to produce no assertion. This also updates the existing tests to match.
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
services.lieer.enable = true;
|
|
|
|
accounts.email.accounts = {
|
|
"hm@example.com" = {
|
|
flavor = "gmail.com";
|
|
lieer = {
|
|
enable = true;
|
|
sync.enable = true;
|
|
};
|
|
notmuch.enable = true;
|
|
};
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
gmailieer = pkgs.writeScriptBin "dummy-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}
|
|
'';
|
|
};
|
|
}
|