feat(gui): add ROCm support via systemd tmpfiles rules
Introduce ROCm support by symlinking ROCm packages in /opt/rocm. Also, comment out unused session variables.
This commit is contained in:
parent
900f95169f
commit
e094566801
|
@ -81,8 +81,23 @@ in
|
|||
amdvlk
|
||||
];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules =
|
||||
let
|
||||
rocmEnv = pkgs.symlinkJoin {
|
||||
name = "rocm-combined";
|
||||
paths = with pkgs.rocmPackages; [
|
||||
rocblas
|
||||
hipblas
|
||||
clr
|
||||
];
|
||||
};
|
||||
in [
|
||||
"L+ /opt/rocm - - - - ${rocmEnv}"
|
||||
];
|
||||
|
||||
environment.sessionVariables = {
|
||||
LIBVA_DRIVER_NAME = "iHD";
|
||||
# LIBVA_DRIVER_NAME = "iHD";
|
||||
# NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue