mirror of
https://github.com/nix-community/home-manager
synced 2024-08-23 12:36:30 +02:00
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.
26 lines
569 B
Nix
26 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
|
|
}
|
|
'';
|
|
};
|
|
}
|