From 75bf262ceaafd3cae44d8f5641fa5ba7a3a81888 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Tue, 30 Sep 2025 16:32:44 +0200 Subject: [PATCH] Add rocm-smi package to systemPackages for AMD driver configuration and monitoring --- modules/drivers/amd-drivers.nix | 1 + modules/home/hyprland/exec-once.nix | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/drivers/amd-drivers.nix b/modules/drivers/amd-drivers.nix index d3d3a7d..ed05113 100644 --- a/modules/drivers/amd-drivers.nix +++ b/modules/drivers/amd-drivers.nix @@ -16,5 +16,6 @@ in config = mkIf cfg.enable { systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ]; services.xserver.videoDrivers = [ "amdgpu" ]; + environment.systemPackages = with pkgs; [ rocmPackages.rocm-smi ]; }; } diff --git a/modules/home/hyprland/exec-once.nix b/modules/home/hyprland/exec-once.nix index 80dab1a..a9c2097 100644 --- a/modules/home/hyprland/exec-once.nix +++ b/modules/home/hyprland/exec-once.nix @@ -9,8 +9,7 @@ in exec-once = [ "wl-paste --type text --watch cliphist store" # Saves text "wl-paste --type image --watch cliphist store" # Saves images - "dbus-update-activation-environment --all --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP -" + "dbus-update-activation-environment --all --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" "systemctl --user start hyprpolkitagent"