+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
b7c82b2
main
1{ config , ...} :{ 2programs . htop . enable = true ; 3programs . htop . settings = { 4fields = with config . lib . htop . fields ; [ 5PID STARTTIME M_SHARE M_RESIDENT M_SIZE PERCENT_CPU TIME COMM 6]; 7 8delay = 20 ; 9 10highlight_base_name = 1 ; 11highlight_megabytes = 1 ; 12highlight_threads = 1 ; 13highlight_changes = 1 ; 14highlight_changes_delay_secs = 1 ; 15 16hide_kernel_threads = 1 ; 17hide_userland_threads = 1 ; 18 19show_cpu_usage = 1 ; 20show_cpu_frequency = 1 ; 21show_cpu_temperature = 1 ; 22 23show_program_path = 0 ; 24 25# screen_tabs = 1; 26 27} // ( with config . lib . htop ; leftMeters [ 28( bar "CPU" ) 29( bar "Memory" ) 30( bar "Swap" ) 31( text "DiskIO" ) 32( text "NetworkIO" ) 33]) // ( with config . lib . htop ; rightMeters [ 34( text "Tasks" ) 35( text "Systemd" ) 36( text "LoadAverage" ) 37( text "PressureStallCPUSome" ) 38( text "PressureStallIOSome" ) 39]); 40}