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:
Harald Hoyer 2024-11-19 10:40:51 +01:00
parent 900f95169f
commit e094566801

View file

@ -81,8 +81,23 @@ in
amdvlk 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 = { environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD"; # LIBVA_DRIVER_NAME = "iHD";
# NIXOS_OZONE_WL = "1"; # NIXOS_OZONE_WL = "1";
}; };