diff --git a/modules/gui/vesktop/default.nix b/modules/gui/vesktop/default.nix index ac1e717..4210796 100644 --- a/modules/gui/vesktop/default.nix +++ b/modules/gui/vesktop/default.nix @@ -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" + '' + ]; })) ];