diff options
author | Tim Keller <tjkeller.xyz> | 2024-11-03 14:11:58 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2024-11-03 14:11:58 -0600 |
commit | 9f017946d069221945d2b41c3bfef5aeaa15d786 (patch) | |
tree | ae668cce66a02e0afc56937a58489449a2eb10e7 /modules | |
parent | 4641b60a074fa2e2420341d81321a399d56b166d (diff) | |
download | nixos-9f017946d069221945d2b41c3bfef5aeaa15d786.tar.xz nixos-9f017946d069221945d2b41c3bfef5aeaa15d786.zip |
add htop to home manager config, disabled
Diffstat (limited to 'modules')
-rw-r--r-- | modules/home/default.nix | 1 | ||||
-rw-r--r-- | modules/home/htop.nix | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix index a651463..6b50026 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -9,6 +9,7 @@ ./alacritty.nix ./firefox.nix ./git.nix + #./htop.nix # crashes the home manager service if htoprc already exists, bug ./initial-home-setup.nix ./pcmanfm.nix # TODO mk name changeable & doesn't seem to work right now ./theme.nix diff --git a/modules/home/htop.nix b/modules/home/htop.nix new file mode 100644 index 0000000..523fee8 --- /dev/null +++ b/modules/home/htop.nix @@ -0,0 +1,38 @@ +{ config, ... }: { + programs.htop.enable = true; + programs.htop.settings = { + fields = with config.lib.htop.fields; [ + PID + USER + 124 # EXE + PERCENT_CPU + PERCENT_MEM + STARTTIME + ELAPSED # time elapsed since process start + IO_READ_RATE + RBYTES # num read bytes + IO_WRITE_RATE + WBYTES # num written bytes + TIME + STIME # sys time + CSTIME # child sys time + NICE + STATE + PRIORITY + 125 # CWD + ]; + } // (with config.lib.htop; leftMeters [ + (bar "AllCPUs2") + (bar "CPU") + (bar "Memory") + (bar "DiskIO") + (bar "NetworkIO") + ]) // (with config.lib.htop; rightMeters [ + (text "Hostname") + (text "Clock") + (text "Uptime") + (text "Battery") + (text "LoadAverage") + (text "Tasks") + ]); +} |