feat: Added htop config
This commit is contained in:
parent
412b782383
commit
5d396a92e1
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -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
32
users/common/htop.nix
Normal 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")
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue