diff --git a/modules/nixos/services/gui/default.nix b/modules/nixos/services/gui/default.nix index 5390a2a..719a890 100644 --- a/modules/nixos/services/gui/default.nix +++ b/modules/nixos/services/gui/default.nix @@ -92,14 +92,8 @@ in clr ]; }; - in [ - "L+ /opt/rocm - - - - ${rocmEnv}" - ]; - - environment.sessionVariables = { - # LIBVA_DRIVER_NAME = "iHD"; - # NIXOS_OZONE_WL = "1"; - }; + in + [ "L+ /opt/rocm - - - - ${rocmEnv}" ]; metacfg.home.configFile."mpv/mpv.conf".text = '' hwdec=auto-safe diff --git a/systems/x86_64-linux/x1/default.nix b/systems/x86_64-linux/x1/default.nix index fef526b..497ed36 100644 --- a/systems/x86_64-linux/x1/default.nix +++ b/systems/x86_64-linux/x1/default.nix @@ -71,6 +71,15 @@ with lib.metacfg; services.ollama = { enable = true; acceleration = "rocm"; + environmentVariables = { + HSA_OVERRIDE_GFX_VERSION = "10.1.0"; + }; + }; + + environment.sessionVariables = { + LIBVA_DRIVER_NAME = "iHD"; + # NIXOS_OZONE_WL = "1"; + # DRI_PRIME = "pci-0000_24_00_0"; }; system.stateVersion = "23.11";