fix steam vulkan

This commit is contained in:
dusk 2021-08-21 21:17:51 +03:00
parent 4acb6d5fb4
commit e1595e9161
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 10 additions and 4 deletions

View File

@ -5,9 +5,8 @@ let
chromiumWayland = chromiumWayland =
let let
flags = [ flags = [
"--enable-vulkan"
"--flag-switches-begin" "--flag-switches-begin"
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,IgnoreGPUBlocklist,Vulkan" "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,IgnoreGPUBlocklist"
"--flag-switches-end" "--flag-switches-end"
"--ozone-platform=wayland" "--ozone-platform=wayland"
"--enable-webrtc-pipewire-capturer" "--enable-webrtc-pipewire-capturer"
@ -46,8 +45,9 @@ in
cp -r ${desktop}/share $out/share cp -r ${desktop}/share $out/share
''; '';
/*fixupPhase = '' /*fixupPhase = ''
wrapProgram $out/bin/${name} \ wrapProgram $out/bin/${pname} \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with pkgs; [ vulkan-loader libGL ])} --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with pkgs; [ vulkan-loader libGL ])} \
--prefix VK_ICD_FILENAMES : "${pkgs.amdvlk}/share/vulkan/icd.d/amd_icd64.json:${pkgs.driversi686Linux.amdvlk}/share/vulkan/icd.d/amd_icd32.json"
'';*/ '';*/
}); });
} }

View File

@ -305,6 +305,12 @@ in
pcmanfm-qt pcmanfm-qt
wl-clipboard wl-clipboard
rust-analyzer rust-analyzer
(lib.hiPrio (steam.override {
extraLibraries = pkgs: [ pkgs.pipewire ];
extraProfile = ''
unset VK_ICD_FILENAMES
export VK_ICD_FILENAMES=${nixosConfig.environment.variables.VK_ICD_FILENAMES}'';
}))
]; ];
}; };