scorpion-26 / gBar

Blazingly fast status bar written with GTK
MIT License
459 stars 17 forks source link

NVML not found, disabling Nvidia GPU - NixOS #103

Open BBFifield opened 1 month ago

BBFifield commented 1 month ago

Describe the bug

Despite having Nvidia proprietary drivers installed on my NixOS system, NVML cannot be found when gBar is executed. The nvidia-smi command works fine, so I'm not quite sure why libnvidia-ml.so wouldn't be available.

Steps to Reproduce

  1. Executed gBar bar HDMI-A-1 in alacritty
  2. Nvidia stats weren't in the bar
  3. Examined output in terminal and saw "NVML not found, disabling Nvidia GPU"

Expected behavior

gBar should have displayed my GPU stats

Screenshots/Error logs Here is my config

# Generated by Home Manager
AmdGPUThermalZone: /device/hwmon/hwmon1/temp1_input
AudioInput: false
AudioMaxVolume: 100
AudioMinVolume: 0
AudioNumbers: false
AudioRevealer: true
AudioScrollSpeed: 5
BatteryFolder: /sys/class/power_supply/BAT1
CPUThermalZone: /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input
CenterTime: true
DateTimeLocale: 
DateTimeStyle: %a %D - %H:%M:%S %Z
DefaultWorkspaceSymbol: 
DiskPartition: /
DrmAmdCard: card0
EnableSNI: true
ExitCommand: killall Hyprland
Location: T
LockCommand: ~/.config/scripts/sys.sh lock
MaxDownloadBytes: 10485760
MaxUploadBytes: 5242880
MinDownloadBytes: 0
MinUploadBytes: 0
NetworkAdapter: enp9s0
NetworkWidget: true
NumWorkspaces: 9
SensorTooltips: true
SuspendCommand: systemctl suspend
TimeSpace: 300
UseHyprlandIPC: true
WorkspaceScrollInvert: false
WorkspaceScrollOnMonitor: true
SNIIconSize: Discord, 26
SNIIconSize: OBS, 23

Information about your system and gBar