From ac0543e68c139f0ca8cd50572f6f16c49575cf91 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 7 Sep 2025 02:16:57 +0200 Subject: [PATCH] Add btop gpu monitor --- modules/btop.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/btop.nix b/modules/btop.nix index 7062537..6427af1 100644 --- a/modules/btop.nix +++ b/modules/btop.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { programs.btop = { @@ -60,8 +60,15 @@ # Battery Settings (MacBook Air) show_battery = true; # Show battery status - # Layout Settings - shown_boxes = "cpu mem net proc"; # Show all main boxes + # GPU Settings (system-specific) + show_gpu_info = "Auto"; # Auto-detect GPU (works on Linux with Intel/AMD/NVIDIA) + nvml_measure_pcie_speeds = false; # NVIDIA-specific, disabled for compatibility + gpu_mirror_graph = true; # Mirror GPU graph when available + + # Layout Settings (platform-aware) + # Note: GPU box only shown on Linux where GPU monitoring is fully supported + # Darwin has limited GPU support (basic metrics only) + shown_boxes = "cpu mem net proc gpu"; presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"; # Clock Display