1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00

firefox: wrap with nixGL by default

This commit is contained in:
Mel Bourgeois 2024-04-29 19:38:08 -05:00
parent 1ff6b80294
commit 53482ffc42
No known key found for this signature in database
GPG Key ID: 290FCF081AEDB3EC

View File

@ -238,10 +238,12 @@ in {
package = mkOption { package = mkOption {
type = with types; nullOr package; type = with types; nullOr package;
default = if versionAtLeast config.home.stateVersion "19.09" then # Wrap with nixGL by default to provide hardware-accelerated WebRender
pkgs.firefox default = (config.lib.nixGL.wrap
else (if versionAtLeast config.home.stateVersion "19.09" then
pkgs.firefox-unwrapped; pkgs.firefox
else
pkgs.firefox-unwrapped));
defaultText = literalExpression "pkgs.firefox"; defaultText = literalExpression "pkgs.firefox";
example = literalExpression '' example = literalExpression ''
pkgs.firefox.override { pkgs.firefox.override {