mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
95b95b1407
Before the XDG variables would be set from the user's environment, if available. This would break some tests. With this change the tests should be fully deterministic. Fixes #1190
34 lines
944 B
Nix
34 lines
944 B
Nix
{ 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;
|
|
};
|
|
|
|
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}
|
|
'';
|
|
};
|
|
}
|