nix-config/users/common/programs/htop.nix
2024-07-26 22:12:48 +02:00

38 lines
805 B
Nix

{ config, ... }:
{
programs.htop = {
enable = true;
settings =
{
tree_view = 1;
highlight_base_name = 1;
show_cpu_frequency = 1;
show_cpu_temperature = 1;
show_program_path = 0;
hide_kernel_threads = 1;
hide_userland_threads = 1;
sort_key = 46; # Sort by %CPU if not in tree mode
}
// (
with config.lib.htop;
leftMeters [
(bar "LeftCPUs2")
(bar "Memory")
(bar "Swap")
(bar "ZFSARC")
(text "NetworkIO")
]
)
// (
with config.lib.htop;
rightMeters [
(bar "RightCPUs2")
(text "LoadAverage")
(text "Tasks")
(text "Uptime")
(text "Systemd")
]
);
};
}