1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

htop: use dummy package in tests

This commit is contained in:
Robert Helgesson 2021-08-16 23:29:49 +02:00
parent 2c3a968f57
commit 5ed3a41afa
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 9 additions and 0 deletions

View file

@ -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
'';

View file

@ -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

View file

@ -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 = ''