diff options
author | sefidel <contact@sefidel.net> | 2024-01-15 03:50:39 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-01-15 03:50:39 +0900 |
commit | 65700539ea4bb6866fdd08b69eca29a19d19a3fc (patch) | |
tree | 0c07bd56fb16d34abef8e2b84339c9978e91c8b1 /home/profiles/base/default.nix | |
parent | cb5959283426eb86870d3b1792275b58fefb86e6 (diff) | |
download | nixrc-65700539ea4bb6866fdd08b69eca29a19d19a3fc.tar.gz nixrc-65700539ea4bb6866fdd08b69eca29a19d19a3fc.zip |
feat(home/base): configure htop
Diffstat (limited to 'home/profiles/base/default.nix')
-rw-r--r-- | home/profiles/base/default.nix | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix index 0be9a53..f654bd4 100644 --- a/home/profiles/base/default.nix +++ b/home/profiles/base/default.nix @@ -69,7 +69,45 @@ in gpg.enable = true; gpg.settings.keyserver = "keys.openpgp.org"; home-manager.enable = true; - htop.enable = true; + + htop = { + enable = true; + + settings = { + color_scheme = 6; + # 0 = false, 1 = true + cpu_count_from_one = 0; + fields = with config.lib.htop.fields; [ + PID + USER + PRIORITY + NICE + M_SIZE + M_RESIDENT + M_SHARE + STATE + PERCENT_CPU + PERCENT_MEM + TIME + COMM + ]; + highlight_base_name = 1; + highlight_megabytes = 1; + highlight_threads = 1; + } // (with config.lib.htop; leftMeters [ + (bar "LeftCPUs4") + (bar "Memory") + (bar "Swap") + (text "NetworkIO") + (text "DiskIO") + ]) // (with config.lib.htop; rightMeters [ + (bar "RightCPUs4") + (text "Tasks") + (text "LoadAverage") + (text "Uptime") + (text "Systemd") + ]); + }; tmux = { enable = true; |