feat: adds htop configuration (and thus move htop to own file)

This commit is contained in:
Ahwx 2026-01-26 22:40:10 +01:00
parent 17f3a7f07f
commit 36aa522f60
2 changed files with 59 additions and 1 deletions

59
modules/home/htop.nix Normal file
View file

@ -0,0 +1,59 @@
{ pkgs, ... }:
{
programs.htop = {
enable = true;
package = pkgs.htop;
};
home.file.".config/htop/htoprc" = {
text = ''
fields=0 48 38 39 40 2 46 109 110 47 49 1
hide_kernel_threads=1
hide_userland_threads=0
hide_running_in_container=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=1
highlight_deleted_exe=1
shadow_distribution_path_prefix=0
highlight_megabytes=1
highlight_threads=1
highlight_changes=0
highlight_changes_delay_secs=5
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=0
header_margin=1
screen_tabs=1
detailed_cpu_time=1
cpu_count_from_one=0
show_cpu_usage=1
show_cpu_frequency=1
show_cpu_temperature=1
degree_fahrenheit=0
show_cached_memory=1
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=6
enable_mouse=1
delay=15
hide_function_bar=0
header_layout=two_50_50
column_meters_0=LeftCPUs2 MemorySwap PressureStallMemoryFull PressureStallIOFull DiskIO NetworkIO Uptime
column_meter_modes_0=1 1 2 2 2 2 2
column_meters_1=RightCPUs2 CPU PressureStallCPUSome LoadAverage Tasks System Systemd Battery
column_meter_modes_1=1 1 2 2 2 2 2 2
tree_view=0
sort_key=46
tree_sort_key=0
sort_direction=-1
tree_sort_direction=1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU IO_READ_RATE IO_WRITE_RATE PERCENT_MEM TIME Command
'';
};
}

View file

@ -43,7 +43,6 @@
pwgen
jq
tmux
htop
eza
file
fzf