feat: add environment variables for ROCm and libva

Included HSA_OVERRIDE_GFX_VERSION for ROCm acceleration. Added LIBVA_DRIVER_NAME and commented NIXOS_OZONE_WL to environment.sessionVariables settings.
This commit is contained in:
Harald Hoyer 2024-11-19 12:30:03 +01:00
parent e094566801
commit 08aae1a581
2 changed files with 11 additions and 8 deletions

View file

@ -92,14 +92,8 @@ in
clr clr
]; ];
}; };
in [ in
"L+ /opt/rocm - - - - ${rocmEnv}" [ "L+ /opt/rocm - - - - ${rocmEnv}" ];
];
environment.sessionVariables = {
# LIBVA_DRIVER_NAME = "iHD";
# NIXOS_OZONE_WL = "1";
};
metacfg.home.configFile."mpv/mpv.conf".text = '' metacfg.home.configFile."mpv/mpv.conf".text = ''
hwdec=auto-safe hwdec=auto-safe

View file

@ -71,6 +71,15 @@ with lib.metacfg;
services.ollama = { services.ollama = {
enable = true; enable = true;
acceleration = "rocm"; 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"; system.stateVersion = "23.11";