mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
htop: use dummy package in tests
This commit is contained in:
parent
2c3a968f57
commit
5ed3a41afa
3 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,9 @@ with lib;
|
|||
config = {
|
||||
programs.htop.enable = true;
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { htop = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/htop
|
||||
'';
|
||||
|
|
|
@ -36,6 +36,9 @@ with lib;
|
|||
(text "Systemd")
|
||||
]);
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { htop = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||
|
||||
nmt.script = ''
|
||||
htoprc=home-files/.config/htop/htoprc
|
||||
assertFileExists $htoprc
|
||||
|
|
|
@ -7,6 +7,9 @@ with lib;
|
|||
programs.htop.enable = true;
|
||||
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
|
||||
# settings or htop won't read the options.
|
||||
nmt.script = ''
|
||||
|
|
Loading…
Reference in a new issue