1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 12:09:46 +01:00
home-manager/tests/modules/programs/broot/broot.nix

44 lines
878 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.broot = {
enable = true;
modal = true;
};
nixpkgs.overlays =
[ (self: super: { broot = pkgs.writeScriptBin "dummy" ""; }) ];
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]
''
}
'';
};
}