1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-12 12:01:08 +01:00
home-manager/tests/modules/programs/broot/broot.nix
2025-04-18 15:56:09 -07:00

28 lines
634 B
Nix

{ config, ... }:
{
programs.broot = {
enable = true;
package = (
config.lib.test.mkStubPackage {
name = "broot";
extraAttrs = {
src = config.lib.test.mkStubPackage {
name = "broot-src";
buildScript = ''
mkdir -p $out/resources/default-conf/
echo test > $out/resources/default-conf/conf.hjson
'';
};
};
}
);
settings.modal = true;
};
nmt.script = ''
assertFileExists home-files/.config/broot/conf.hjson
assertFileContains home-files/.config/broot/conf.hjson '"modal": true'
'';
}