mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
cb09a968e9
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
25 lines
569 B
Nix
25 lines
569 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
programs.lieer.enable = true;
|
|
programs.lieer.package = config.lib.test.mkStubPackage { };
|
|
|
|
accounts.email.accounts."hm@example.com" = {
|
|
flavor = "gmail.com";
|
|
lieer.enable = true;
|
|
notmuch.enable = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
|
|
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json ${
|
|
./lieer-expected.json
|
|
}
|
|
'';
|
|
};
|
|
}
|