2024-08-22 22:27:39 +03:00
|
|
|
{ pkgs, lib, inputs, ... }:
|
2024-04-16 02:51:46 +03:00
|
|
|
|
|
|
|
let
|
|
|
|
policiesJson = pkgs.callPackage ./policies.nix {
|
|
|
|
firefoxAddons = inputs.firefox-addons.packages."${pkgs.system}";
|
|
|
|
withRedirectorAddon = true;
|
|
|
|
withSidebarTabsAddon = true;
|
2024-04-18 18:18:53 +03:00
|
|
|
withAllSearchEngines = true;
|
2024-04-16 02:51:46 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
mullvadBrowser = pkgs.mullvad-browser.overrideAttrs (attrs: {
|
|
|
|
postInstall = ''
|
|
|
|
rm $out/share/mullvad-browser/distribution/policies.json
|
|
|
|
|
|
|
|
install -Dvm644 ${policiesJson} $out/share/mullvad-browser/distribution/policies.json
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.local.programs.browsers.mullvad-browser = with lib; {
|
|
|
|
enable = mkEnableOption "mullvad-browser";
|
2024-08-22 22:27:39 +03:00
|
|
|
package = mkPackageOption pkgs "mullvad-browser" {} // { default = mullvadBrowser; };
|
2024-04-16 02:51:46 +03:00
|
|
|
};
|
|
|
|
}
|