You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
735 B
33 lines
735 B
3 years ago
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs.htop.enable = true;
|
||
|
programs.htop.settings = { color_scheme = 6; };
|
||
|
|
||
3 years ago
|
test.stubs.htop = { };
|
||
3 years ago
|
|
||
3 years ago
|
# Test that the 'fields' key is written in addition to the customized
|
||
|
# settings or htop won't read the options.
|
||
2 years ago
|
nmt.script = let
|
||
|
fields = if pkgs.stdenv.hostPlatform.isDarwin then
|
||
|
"0 48 17 18 38 39 2 46 47 49 1"
|
||
|
else
|
||
|
"0 48 17 18 38 39 40 2 46 47 49 1";
|
||
|
in ''
|
||
3 years ago
|
htoprc=home-files/.config/htop/htoprc
|
||
|
assertFileExists $htoprc
|
||
|
assertFileContent $htoprc \
|
||
|
${
|
||
|
builtins.toFile "htoprc-expected" ''
|
||
|
color_scheme=6
|
||
2 years ago
|
fields=${fields}
|
||
3 years ago
|
''
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
}
|