Commit ffeffc87a823
Changed files (1)
users
vincent
core
users/vincent/core/htop.nix
@@ -1,10 +1,22 @@
+{ config, ... }:
+
{
programs.htop = {
enable = true;
- delay = 10;
- meters = {
- left = [ "AllCPUs2" "Memory" "Swap" ];
- right = [ "Clock" "Hostname" "Tasks" "LoadAverage" "Uptime" "Battery" ];
- };
+ settings = {
+ delay = 10;
+ } // (with config.lib.htop; leftMeters [
+ (bar "AllCPUs2")
+ (bar "Memory")
+ (bar "Swap")
+ ]) // (with config.lib.htop; rightMeters [
+ (text "Clock")
+ (text "Hostname")
+ (text "Tasks")
+ (text "LoadAverage")
+ (text "Uptime")
+ (text "Battery")
+ (text "Systemd")
+ ]);
};
}