fork/home-manager
git clone https://git.julia.blue/fork/home-manager
e6869735
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7programs . htop . enable = true ; 8programs . htop . settings = { color_scheme = 6 ; }; 9 10test . stubs . htop = { }; 11 12# Test that the 'fields' key is written in addition to the customized 13# settings or htop won't read the options. 14nmt . script = let 15fields = if pkgs . stdenv . hostPlatform . isDarwin then 16"0 48 17 18 38 39 2 46 47 49 1" 17else 18"0 48 17 18 38 39 40 2 46 47 49 1" ; 19in '' 20htoprc=home-files/.config/htop/htoprc 21assertFileExists $htoprc 22assertFileContent $htoprc \ 23${ 24builtins . toFile "htoprc-expected" '' 25color_scheme=6 26fields= ${ fields } 27'' 28} 29'' ; 30}; 31 32}