[Browser/Firefox] refactor firefox to use callPackage

Move overrides to a config option
Add gnome support
This commit is contained in:
Antoine Viallon 2023-05-05 11:44:59 +02:00
parent 776c6e3060
commit 539e85ed95
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
5 changed files with 23 additions and 4 deletions

View file

@ -1,4 +1,9 @@
{pkgs, lib,
{lib,
firefox-esr-unwrapped,
wrapFirefox,
enablePlasmaBrowserIntegration ? false,
enableGnomeExtensions ? false,
extraNativeMessengingHosts ? [],
...
}:
with lib;
@ -12,12 +17,12 @@ let
(key: value: ''${prefFuncName}(${builtins.toJSON key}, ${builtins.toJSON value});'' )
prefs
);
in pkgs.wrapFirefox pkgs.firefox-esr-unwrapped {
in wrapFirefox firefox-esr-unwrapped {
cfg = {
smartcardSupport = true;
pipewireSupport = true;
ffmpegSupport = true;
enablePlasmaBrowserIntegration = true;
inherit enablePlasmaBrowserIntegration enableGnomeExtensions extraNativeMessengingHosts;
};
extraPolicies = {