nixos-config/home/browsers/mullvad-browser.nix
Felix Schröter 4cee402863
feat(browsers): update firefox configurations
- update Mullvad Browser config
- update Firefox / Arkenfox config
2023-05-31 16:02:19 +02:00

52 lines
1.3 KiB
Nix

{ config, nixosConfig, pkgs, lib, ... }:
let
firefox-addons = pkgs.nur.repos.rycee.firefox-addons
// (import ./firefoxAddons.nix { inherit pkgs lib; });
commonSettings = {
# Disable DNS over HTTPS (use system DNS, i.e. VPN's DNS)
"network.trr.mode" = 5;
# Set Security Level Safer
# "browser.security_level.security_slider" = 2;
# Disable private browsing mode and enable restoring sessions
"browser.privatebrowsing.autostart" = false;
"browser.startup.page" = 3;
# Enable persistence of site permissions
"permissions.memory_only" = false;
# Don't delete cookies & site data on restart
# "network.cookie.lifetimePolicy" = 0;
};
commonExtensions = with firefox-addons; [
german-dictionary
bitwarden
libredirect
zotero-connector
];
in {
imports = [ ../modules/firefox/mullvad-browser.nix ];
programs.mullvad-browser = {
enable = true;
createProfileBins = true;
profiles = {
private = {
id = 0;
settings = commonSettings;
extensions = commonExtensions;
};
work = {
id = 1;
settings = commonSettings;
extensions = commonExtensions
++ (with firefox-addons; [ react-devtools reduxdevtools ]);
};
};
};
}