From bd5a760fa7596ef549c7d1a0cabff35d445b7e72 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Wed, 23 Oct 2024 17:29:03 +0200 Subject: [PATCH] htop: add config --- configuration.nix | 25 +++++++++++++++++++++++++ nixos-edit.script.nix | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index fbba65e..409032e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -71,6 +71,31 @@ in ]; programs.fish.enable = true; + programs.htop.settings = { + hide_kernel_threads="1"; + hide_userland_threads="1"; + show_thread_names="1"; + show_program_path="0"; + highlight_base_name="1"; + highlight_deleted_exe="1"; + find_comm_in_cmdline="1"; + strip_exe_from_cmdline="1"; + show_merged_command="1"; + show_cpu_usage="1"; + show_cpu_frequency="1"; + show_cpu_temperature="1"; + delay="4"; + header_layout="two_50_50"; + column_meters_0="AllCPUs Memory Swap CPU PressureStallCPUSome"; + column_meter_modes_0="1 1 1 3 2"; + column_meters_1="Tasks LoadAverage Uptime DiskIO NetworkIO NetworkIO PressureStallIOSome PressureStallMemorySome"; + column_meter_modes_1="2 2 2 1 1 3 2 2"; + tree_view="1"; + sort_key="47"; + tree_sort_key="47"; + sort_direction="-1"; + tree_sort_direction="-1"; + }; # Use the GRUB 2 boot loader. boot.loader.grub.enable = true; diff --git a/nixos-edit.script.nix b/nixos-edit.script.nix index b2ecd5e..ad70663 100644 --- a/nixos-edit.script.nix +++ b/nixos-edit.script.nix @@ -87,7 +87,7 @@ pkgs.writeShellScriptBin "nixos-edit" '' [ "$1" = "edit" ] || [ "$1" = "" ] || - [ "$1" = "push" ] || + [ "$1" = "push" ] PUSH=$? cd /etc/nixos