htop: let htop program use its default settings

Don't generate the `htoprc` when using default settings to use the defaults of
the htop program.

Rename the test for this case to 'empty-settings'.
This commit is contained in:
Bart Bakker 2021-07-29 14:34:08 +02:00 committed by Robert Helgesson
parent 7226c2db46
commit e4553546cc
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 6 additions and 53 deletions

View file

@ -1,4 +1,4 @@
{
htop-default-settings = ./default-settings.nix;
htop-empty-settings = ./empty-settings.nix;
htop-example-settings = ./example-settings.nix;
}

View file

@ -7,7 +7,7 @@ with lib;
programs.htop.enable = true;
nmt.script = ''
assertFileExists home-files/.config/htop/htoprc
assertPathNotExists home-files/.config/htop
'';
};
}