mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Browser/Firefox] refactor firefox to use callPackage
Move overrides to a config option Add gnome support
This commit is contained in:
parent
776c6e3060
commit
539e85ed95
5 changed files with 23 additions and 4 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue