mirror of
https://github.com/nix-community/home-manager
synced 2024-11-19 17:49:45 +01:00
broot: simplify test slightly
This commit is contained in:
parent
18b56e3f7d
commit
d7a3c26854
1 changed files with 22 additions and 26 deletions
|
@ -1,30 +1,26 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
config = {
|
programs.broot = {
|
||||||
programs.broot = {
|
enable = true;
|
||||||
enable = true;
|
settings.modal = true;
|
||||||
settings.modal = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
nmt.script = ''
|
|
||||||
assertFileExists home-files/.config/broot/conf.toml
|
|
||||||
assertFileContent home-files/.config/broot/conf.toml ${
|
|
||||||
pkgs.writeText "broot.expected" ''
|
|
||||||
content_search_max_file_size = "10MB"
|
|
||||||
imports = ["verbs.hjson", {file = "dark-blue-skin.hjson", luma = ["dark", "unknown"]}, {file = "white-skin.hjson", luma = "light"}]
|
|
||||||
modal = true
|
|
||||||
show_selection_mark = true
|
|
||||||
verbs = []
|
|
||||||
|
|
||||||
[skin]
|
|
||||||
|
|
||||||
[special_paths]
|
|
||||||
"/media" = "no-enter"
|
|
||||||
''
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nmt.script = ''
|
||||||
|
assertFileExists home-files/.config/broot/conf.toml
|
||||||
|
assertFileContent home-files/.config/broot/conf.toml ${
|
||||||
|
builtins.toFile "broot.expected" ''
|
||||||
|
content_search_max_file_size = "10MB"
|
||||||
|
imports = ["verbs.hjson", {file = "dark-blue-skin.hjson", luma = ["dark", "unknown"]}, {file = "white-skin.hjson", luma = "light"}]
|
||||||
|
modal = true
|
||||||
|
show_selection_mark = true
|
||||||
|
verbs = []
|
||||||
|
|
||||||
|
[skin]
|
||||||
|
|
||||||
|
[special_paths]
|
||||||
|
"/media" = "no-enter"
|
||||||
|
''
|
||||||
|
}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue