htop: use dummy package in tests
This commit is contained in:
parent
2c3a968f57
commit
5ed3a41afa
|
@ -6,6 +6,9 @@ with lib;
|
||||||
config = {
|
config = {
|
||||||
programs.htop.enable = true;
|
programs.htop.enable = true;
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { htop = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertPathNotExists home-files/.config/htop
|
assertPathNotExists home-files/.config/htop
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -36,6 +36,9 @@ with lib;
|
||||||
(text "Systemd")
|
(text "Systemd")
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { htop = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
htoprc=home-files/.config/htop/htoprc
|
htoprc=home-files/.config/htop/htoprc
|
||||||
assertFileExists $htoprc
|
assertFileExists $htoprc
|
||||||
|
|
|
@ -7,6 +7,9 @@ with lib;
|
||||||
programs.htop.enable = true;
|
programs.htop.enable = true;
|
||||||
programs.htop.settings = { color_scheme = 6; };
|
programs.htop.settings = { color_scheme = 6; };
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { htop = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||||
|
|
||||||
# Test that the 'fields' key is written in addition to the customized
|
# Test that the 'fields' key is written in addition to the customized
|
||||||
# settings or htop won't read the options.
|
# settings or htop won't read the options.
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
|
|
Loading…
Reference in a new issue