File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,19 @@ self: {
22 config ,
33 pkgs ,
44 lib ,
5+ system ,
56 ...
67} : let
78 cfg = config . programs . oxirun ;
89 defaultPackage = self . packages . ${ pkgs . stdenv . hostPlatform . system } . default ;
910 oxirun-applications = self . packages . ${ pkgs . stdenv . hostPlatform . system } . oxirun-applications ;
11+ driverIcdPath = "${ pkgs . mesa } /share/vulkan/icd.d" ;
12+ icdArch =
13+ if system == "x86_64-linux"
14+ then "x86_64"
15+ else if system == "aarch64-linux"
16+ then "aarch64"
17+ else "x86_64" ;
1018in {
1119 meta . maintainers = with lib . maintainers ; [ DashieTM ] ;
1220 options . programs . oxirun = with lib ; {
3341 '' ;
3442 } ;
3543
44+ home . sessionVariables = {
45+ VK_ICD_FILENAMES = "${ driverIcdPath } /radeon_icd.${ icdArch } .json:${ driverIcdPath } /intel_icd.${ icdArch } .json" ;
46+ } ;
47+
3648 plugin_config = mkOption {
3749 type = with types ; attrs ;
3850 default = { } ;
You can’t perform that action at this time.
0 commit comments