users/profiles: add htop profile
This commit is contained in:
parent
dc2a4c9c24
commit
72e7f0b5e6
1 changed files with 39 additions and 0 deletions
39
users/profiles/htop.nix
Normal file
39
users/profiles/htop.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ config, ... }: {
|
||||||
|
programs.htop = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
color_scheme = 0;
|
||||||
|
cpu_count_from_one = 0;
|
||||||
|
delay = 15;
|
||||||
|
fields = with config.lib.htop.fields; [
|
||||||
|
PID
|
||||||
|
USER
|
||||||
|
PRIORITY
|
||||||
|
NICE
|
||||||
|
M_SIZE
|
||||||
|
M_RESIDENT
|
||||||
|
M_SHARE
|
||||||
|
STATE
|
||||||
|
PERCENT_CPU
|
||||||
|
PERCENT_MEM
|
||||||
|
TIME
|
||||||
|
CWD
|
||||||
|
COMM
|
||||||
|
];
|
||||||
|
highlight_base_name = 1;
|
||||||
|
highlight_megabytes = 1;
|
||||||
|
highlight_threads = 1;
|
||||||
|
} // (with config.lib.htop; leftMeters [
|
||||||
|
(bar "AllCPUs2")
|
||||||
|
(bar "Memory")
|
||||||
|
(bar "Swap")
|
||||||
|
(text "Zram")
|
||||||
|
]) // (with config.lib.htop; rightMeters [
|
||||||
|
(text "Tasks")
|
||||||
|
(text "LoadAverage")
|
||||||
|
(text "Uptime")
|
||||||
|
(text "Systemd")
|
||||||
|
]);
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue