From 36aa522f607e1e4f0e654855e20deb1176d79639 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 26 Jan 2026 22:40:10 +0100 Subject: [PATCH] feat: adds `htop` configuration (and thus move htop to own file) --- modules/home/htop.nix | 59 +++++++++++++++++++++++++++++++++++++++ modules/home/packages.nix | 1 - 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 modules/home/htop.nix diff --git a/modules/home/htop.nix b/modules/home/htop.nix new file mode 100644 index 0000000..f9555fd --- /dev/null +++ b/modules/home/htop.nix @@ -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 + ''; + }; + +} diff --git a/modules/home/packages.nix b/modules/home/packages.nix index 17f39e3..c039254 100644 --- a/modules/home/packages.nix +++ b/modules/home/packages.nix @@ -43,7 +43,6 @@ pwgen jq tmux - htop eza file fzf