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,7 +21,9 @@ in {
patches = (old.patches or []) ++ [ ./readonlyFix.patch ];
# thanks aleph :3
# https://github.com/AlephNought0/Faery/blob/main/Home/Programs/Vesktop/vesktop.nix#L21
postFixup = ''
postFixup = concatStrings [
old.postFixup
''
wrapProgram $out/bin/vesktop \
--add-flags "--ozone-platform=wayland \
--enable-zero-copy \
@ -36,7 +39,8 @@ in {
--enable-accelerated-mjpeg-decode \
--disable-gpu-vsync \
--enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport"
'';
''
];
}))
];