home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

htop.nix (425B)


      1 { config, ... }:
      2 
      3 {
      4   programs.htop = {
      5     enable = true;
      6     settings = {
      7       delay = 10;
      8     } // (with config.lib.htop; leftMeters [
      9       (bar "AllCPUs2")
     10       (bar "Memory")
     11       (bar "Swap")
     12     ]) // (with config.lib.htop; rightMeters [
     13       (text "Clock")
     14       (text "Hostname")
     15       (text "Tasks")
     16       (text "LoadAverage")
     17       (text "Uptime")
     18       (text "Battery")
     19       (text "Systemd")
     20     ]);
     21   };
     22 }