diff options
| author | seth <[email protected]> | 2023-08-16 14:42:06 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-16 14:42:06 -0400 |
| commit | ce0784d64fd7775bbdf7c0bb0f9b6cb8a4682715 (patch) | |
| tree | 02e00462f6ddf7697364cf875a64acc62ce34c38 /users/seth | |
| parent | 36a0ee5802cc7b0d6b982ce19022898f5ae45601 (diff) | |
users/seth: add hw accel flags to chromium
Diffstat (limited to 'users/seth')
| -rw-r--r-- | users/seth/desktop/default.nix | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/users/seth/desktop/default.nix b/users/seth/desktop/default.nix index d572a55..dc5f93b 100644 --- a/users/seth/desktop/default.nix +++ b/users/seth/desktop/default.nix @@ -17,14 +17,29 @@ in { options.desktop.enable = mkEnableOption "enable desktop configuration"; - config.home = mkIf cfg.enable { - packages = with pkgs; [ - chromium + config = mkIf cfg.enable { + home.packages = with pkgs; [ discord element-desktop spotify steam prismlauncher ]; + + programs = { + chromium = { + enable = true; + # hw accel support + commandLineArgs = [ + "--ignore-gpu-blocklist" + "--enable-gpu-rasterization" + "--enable-gpu-compositing" + "--enable-native-gpu-memory-buffers" + "--enable-zero-copy" + "--enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization,RawDraw,WebRTCPipeWireCapturer,Vulkan,WaylandWindowDecorations,WebUIDarkMode" + "--force-dark-mode" + ]; + }; + }; }; } |
