mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 15:09:46 +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.
17 lines
348 B
Nix
17 lines
348 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let expected = builtins.toFile "settings-expected" "\n\n\n\n\n\n\n\n\n\n\n";
|
|
in {
|
|
config = {
|
|
programs.lf = { enable = true; };
|
|
|
|
test.stubs.lf = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/lf/lfrc
|
|
assertFileContent home-files/.config/lf/lfrc ${expected}
|
|
'';
|
|
};
|
|
}
|