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
					
				
					 1 changed files with 16 additions and 1 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue