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:
parent
1ff6b80294
commit
53482ffc42
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user