Commit ffeffc87a823

Vincent Demeester <vincent@sbr.pm>
2021-08-24 12:00:29
users/vincent: update htop configuration
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 03c6938
Changed files (1)
users
vincent
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")
+    ]);
   };
 }