mirror of
https://github.com/nix-community/home-manager
synced 2024-06-14 02:33:38 +02:00
firefox: wrap with nixGL by default
This commit is contained in:
parent
1ff6b80294
commit
53482ffc42
|
@ -238,10 +238,12 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
type = with types; nullOr package;
|
||||
default = if versionAtLeast config.home.stateVersion "19.09" then
|
||||
pkgs.firefox
|
||||
else
|
||||
pkgs.firefox-unwrapped;
|
||||
# Wrap with nixGL by default to provide hardware-accelerated WebRender
|
||||
default = (config.lib.nixGL.wrap
|
||||
(if versionAtLeast config.home.stateVersion "19.09" then
|
||||
pkgs.firefox
|
||||
else
|
||||
pkgs.firefox-unwrapped));
|
||||
defaultText = literalExpression "pkgs.firefox";
|
||||
example = literalExpression ''
|
||||
pkgs.firefox.override {
|
||||
|
|
Loading…
Reference in New Issue
Block a user