fix vesktop wrapper

This commit is contained in:
jacekpoz 2024-07-13 22:23:28 +02:00
parent f9a00099dd
commit 3c997d1852
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -8,6 +8,7 @@
inherit (config.myOptions.other.system) username;
inherit (lib) mkEnableOption mkIf;
inherit (lib.strings) concatStrings;
in {
options.myOptions.programs.vesktop = {
enable = mkEnableOption "vesktop";
@ -20,23 +21,26 @@ in {
patches = (old.patches or []) ++ [ ./readonlyFix.patch ];
# thanks aleph :3
# https://github.com/AlephNought0/Faery/blob/main/Home/Programs/Vesktop/vesktop.nix#L21
postFixup = ''
wrapProgram $out/bin/vesktop \
--add-flags "--ozone-platform=wayland \
--enable-zero-copy \
--use-gl=angle \
--use-vulkan \
--enable-oop-rasterization \
--enable-raw-draw \
--enable-gpu-rasterization \
--enable-gpu-compositing \
--enable-native-gpu-memory-buffers \
--enable-accelerated-2d-canvas \
--enable-accelerated-video-decode \
--enable-accelerated-mjpeg-decode \
--disable-gpu-vsync \
--enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport"
'';
postFixup = concatStrings [
old.postFixup
''
wrapProgram $out/bin/vesktop \
--add-flags "--ozone-platform=wayland \
--enable-zero-copy \
--use-gl=angle \
--use-vulkan \
--enable-oop-rasterization \
--enable-raw-draw \
--enable-gpu-rasterization \
--enable-gpu-compositing \
--enable-native-gpu-memory-buffers \
--enable-accelerated-2d-canvas \
--enable-accelerated-video-decode \
--enable-accelerated-mjpeg-decode \
--disable-gpu-vsync \
--enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport"
''
];
}))
];