diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-19 00:24:10 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:27 +0530 |
| commit | 2492b513c4189c31fb965af584a6bb0b73d01531 (patch) | |
| tree | 8169610e7b85f3530db9aabf4f32d8f5f311b135 /modules/web/chromium | |
| parent | 2ac22a72455341a3efced289782fe5daf5d788ee (diff) | |
| download | home-manager-config-2492b513c4189c31fb965af584a6bb0b73d01531.tar.gz home-manager-config-2492b513c4189c31fb965af584a6bb0b73d01531.zip | |
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
Diffstat (limited to 'modules/web/chromium')
| -rw-r--r-- | modules/web/chromium/default.nix | 21 |
1 files changed, 12 insertions, 9 deletions
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" ]; }; |
