feat: Added htop config

This commit is contained in:
Patrick Großmann 2023-01-21 23:51:42 +01:00
parent 412b782383
commit 5d396a92e1
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
3 changed files with 33 additions and 1 deletions

View file

@ -109,7 +109,6 @@
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
xterm xterm
wget wget
htop
gcc gcc
tree tree
]; ];

View file

@ -5,6 +5,7 @@
}: { }: {
imports = [ imports = [
./zsh.nix ./zsh.nix
./htop.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [

32
users/common/htop.nix Normal file
View file

@ -0,0 +1,32 @@
{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")
]);
};
}