system/modules/nixos/programs/browsers/librewolf.nix

25 lines
758 B
Nix
Raw Normal View History

{ pkgs, lib, inputs, ... }:
2024-04-16 02:51:46 +03:00
let
# isPassEnabled = config.local.programs.pass.enable;
2024-04-16 02:51:46 +03:00
policiesJson = pkgs.callPackage ./policies.nix {
firefoxAddons = inputs.firefox-addons.packages."${pkgs.system}";
# withPassffAddon = isPassEnabled;
2024-04-16 02:51:46 +03:00
withRedirectorAddon = true;
withSidebarTabsAddon = true;
2024-04-18 18:18:53 +03:00
withAllSearchEngines = true;
2024-04-16 02:51:46 +03:00
};
librewolf' = with pkgs.unstable; librewolf.override {
extraPoliciesFiles = librewolf.unwrapped.extraPoliciesFiles ++ [ policiesJson ];
# nativeMessagingHosts = lib.optional isPassEnabled passff-host;
2024-04-16 02:51:46 +03:00
};
in
{
options.local.programs.browsers.librewolf = with lib; {
enable = mkEnableOption "librewolf";
package = mkPackageOption pkgs "librewolf" {} // { default = librewolf'; };
2024-04-16 02:51:46 +03:00
};
}