Split user config in more files
This commit is contained in:
parent
e7298e005b
commit
f74657d221
7 changed files with 235 additions and 214 deletions
37
users/froidmpa/htop.nix
Normal file
37
users/froidmpa/htop.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
programs.htop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
hide_userland_threads = true;
|
||||
highlight_base_name = true;
|
||||
vim_mode = true;
|
||||
fields = with config.lib.htop.fields;[
|
||||
PID
|
||||
USER
|
||||
M_RESIDENT
|
||||
M_SHARE
|
||||
STATE
|
||||
PERCENT_CPU
|
||||
PERCENT_MEM
|
||||
IO_RATE
|
||||
TIME
|
||||
COMM
|
||||
];
|
||||
} // (
|
||||
with config.lib.htop; leftMeters [
|
||||
(bar "LeftCPUs2")
|
||||
(bar "CPU")
|
||||
(bar "Memory")
|
||||
(bar "Swap")
|
||||
]
|
||||
) // (
|
||||
with config.lib.htop; rightMeters [
|
||||
(bar "RightCPUs2")
|
||||
(text "Tasks")
|
||||
(text "LoadAverage")
|
||||
(text "Uptime")
|
||||
]
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue