mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 17:19: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.
42 lines
813 B
Nix
42 lines
813 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.broot = {
|
|
enable = true;
|
|
modal = true;
|
|
};
|
|
|
|
test.stubs.broot = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/broot/conf.toml
|
|
assertFileContent home-files/.config/broot/conf.toml ${
|
|
pkgs.writeText "broot.expected" ''
|
|
modal = true
|
|
|
|
[[verbs]]
|
|
execution = ":parent"
|
|
invocation = "p"
|
|
|
|
[[verbs]]
|
|
execution = "$EDITOR {file}"
|
|
invocation = "edit"
|
|
shortcut = "e"
|
|
|
|
[[verbs]]
|
|
execution = "$EDITOR {directory}/{subpath}"
|
|
invocation = "create {subpath}"
|
|
|
|
[[verbs]]
|
|
execution = "less {file}"
|
|
invocation = "view"
|
|
|
|
[skin]
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|