htop: add config

This commit is contained in:
Daniella / Tove 2024-10-23 17:29:03 +02:00
parent ce8cde59d3
commit bd5a760fa7
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 26 additions and 1 deletions

View file

@ -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;

View file

@ -87,7 +87,7 @@ pkgs.writeShellScriptBin "nixos-edit" ''
[ "$1" = "edit" ] ||
[ "$1" = "" ] ||
[ "$1" = "push" ] ||
[ "$1" = "push" ]
PUSH=$?
cd /etc/nixos