From 2492b513c4189c31fb965af584a6bb0b73d01531 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 19 Aug 2026 00:24:10 +0530 Subject: feat: neomutt vim-like keybindings, graphics acceleration on chromium - added/replaced some more keybindings to be more vim-like - fixed the graphics acceleration on ungoogled-chromium by forcing it to use opengl pipelines --- modules/web/chromium/default.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'modules/web/chromium') diff --git a/modules/web/chromium/default.nix b/modules/web/chromium/default.nix index 19038e5..f38cdf8 100644 --- a/modules/web/chromium/default.nix +++ b/modules/web/chromium/default.nix @@ -19,15 +19,14 @@ defaultText = lib.literalExpression "config.programs.chromium.finalPackage"; description = "Package to use for chromium. Defaults to the wrapped finalPackage from programs.chromium."; }; - checkForUpdates = lib.mkOption { - type = lib.types.bool; - default = true; - description = '' - Check GitHub for newer extension releases before building, and abort - with upgrade instructions if the pinned version is stale. Requires - network access during evaluation (pass --impure to nix/home-manager). - ''; - }; + checkForUpdates = lib.mkEnableOption '' + Check GitHub for newer extension releases before building, and abort + with upgrade instructions if the pinned version is stale. Requires + network access during evaluation (pass --impure to nix/home-manager). + ''; + useOpenGL = lib.mkEnableOption '' + Use OpenGL APIs for graphics acceleration + ''; }; config = lib.mkIf config.web.chromium.enable { @@ -43,6 +42,10 @@ [ "--force-device-scale-factor=1.15" "--load-extension=${extensionDirs}" + ] + ++ lib.optionals config.web.chromium.useOpenGL [ + "--use-angle=opengl" + "--use-cmd-decoder=passthrough" ]; }; -- cgit v1.2.3