24 lines
758 B
Nix
24 lines
758 B
Nix
{ pkgs, lib, inputs, ... }:
|
|
|
|
let
|
|
# isPassEnabled = config.local.programs.pass.enable;
|
|
|
|
policiesJson = pkgs.callPackage ./policies.nix {
|
|
firefoxAddons = inputs.firefox-addons.packages."${pkgs.system}";
|
|
# withPassffAddon = isPassEnabled;
|
|
withRedirectorAddon = true;
|
|
withSidebarTabsAddon = true;
|
|
withAllSearchEngines = true;
|
|
};
|
|
|
|
librewolf' = with pkgs.unstable; librewolf.override {
|
|
extraPoliciesFiles = librewolf.unwrapped.extraPoliciesFiles ++ [ policiesJson ];
|
|
# nativeMessagingHosts = lib.optional isPassEnabled passff-host;
|
|
};
|
|
in
|
|
{
|
|
options.local.programs.browsers.librewolf = with lib; {
|
|
enable = mkEnableOption "librewolf";
|
|
package = mkPackageOption pkgs "librewolf" {} // { default = librewolf'; };
|
|
};
|
|
}
|