fork/home-manager
git clone https://git.julia.blue/fork/home-manager
cb09a968
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7programs . htop . enable = true ; 8programs . htop . settings = { 9color_scheme = 6 ; 10cpu_count_from_one = 0 ; 11delay = 15 ; 12fields = with config . lib . htop . fields ; [ 13PID 14USER 15PRIORITY 16NICE 17M_SIZE 18M_RESIDENT 19M_SHARE 20STATE 21PERCENT_CPU 22PERCENT_MEM 23TIME 24COMM 25]; 26highlight_base_name = 1 ; 27highlight_megabytes = 1 ; 28highlight_threads = 1 ; 29} // ( with config . lib . htop ; 30leftMeters [ ( bar "AllCPUs2" ) ( bar "Memory" ) ( bar "Swap" ) ( text "Zram" ) ]) 31// ( with config . lib . htop ; 32rightMeters [ 33( text "Tasks" ) 34( text "LoadAverage" ) 35( text "Uptime" ) 36( text "Systemd" ) 37]); 38 39test . stubs . htop = { }; 40 41nmt . script = '' 42htoprc =home-files/.config/htop/htoprc 43assertFileExists $ htoprc 44assertFileContent $ htoprc ${ ./example-htoprc.txt } 45'' ; 46}; 47}