2023-09-30 03:31:46 +02:00
|
|
|
{ inputs, pkgs, lib, ... }:
|
2023-04-12 20:59:05 +02:00
|
|
|
|
|
|
|
let
|
2023-09-30 03:31:46 +02:00
|
|
|
firefox-addons = inputs.firefox-addons.packages.${pkgs.system}
|
|
|
|
// (import ./firefoxAddons.nix { inherit inputs pkgs lib; });
|
2023-04-12 20:59:05 +02:00
|
|
|
|
|
|
|
commonSettings = {
|
2023-04-25 18:36:40 +02:00
|
|
|
# Disable DNS over HTTPS (use system DNS, i.e. VPN's DNS)
|
|
|
|
"network.trr.mode" = 5;
|
2023-04-17 12:38:06 +02:00
|
|
|
|
2023-05-31 16:01:45 +02:00
|
|
|
# Set Security Level Safer
|
|
|
|
# "browser.security_level.security_slider" = 2;
|
2023-04-17 12:38:06 +02:00
|
|
|
|
|
|
|
# Disable private browsing mode and enable restoring sessions
|
2023-04-12 20:59:05 +02:00
|
|
|
"browser.privatebrowsing.autostart" = false;
|
|
|
|
"browser.startup.page" = 3;
|
|
|
|
|
2023-10-24 18:51:37 +02:00
|
|
|
# Enable persistence of site data
|
2023-04-12 20:59:05 +02:00
|
|
|
"permissions.memory_only" = false;
|
|
|
|
|
2023-10-24 18:51:37 +02:00
|
|
|
# Customise clear on shutdown
|
|
|
|
"privacy.clearOnShutdown.cache" = true;
|
|
|
|
"privacy.clearOnShutdown.cookies" = true;
|
|
|
|
"privacy.clearOnShutdown.sessions" = true;
|
|
|
|
"privacy.clearOnShutdown.offlineApps" = true;
|
|
|
|
"privacy.clearOnShutdown.openWindows" = false;
|
|
|
|
"privacy.clearOnShutdown.siteSettings" = false;
|
|
|
|
"privacy.clearOnShutdown.downloads" = false;
|
|
|
|
"privacy.clearOnShutdown.formdata" = false;
|
|
|
|
"privacy.clearOnShutdown.history" = false;
|
2023-06-26 18:10:11 +02:00
|
|
|
|
|
|
|
# Disable extension auto updates
|
|
|
|
"extensions.update.enabled" = false;
|
|
|
|
"extensions.update.autoUpdateDefault" = false;
|
2024-04-30 22:49:56 +02:00
|
|
|
|
|
|
|
# Use native file picker instead of GTK file picker
|
|
|
|
"widget.use-xdg-desktop-portal.file-picker" = 1;
|
2023-04-12 20:59:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
commonExtensions = with firefox-addons; [
|
2023-05-31 16:01:45 +02:00
|
|
|
german-dictionary
|
2024-04-30 22:48:43 +02:00
|
|
|
proton-pass
|
2023-04-12 20:59:05 +02:00
|
|
|
libredirect
|
|
|
|
zotero-connector
|
|
|
|
];
|
|
|
|
in {
|
2023-04-14 22:24:19 +02:00
|
|
|
imports = [ ../modules/firefox/mullvad-browser.nix ];
|
2023-04-12 20:59:05 +02:00
|
|
|
|
|
|
|
programs.mullvad-browser = {
|
|
|
|
enable = true;
|
|
|
|
createProfileBins = true;
|
|
|
|
profiles = {
|
|
|
|
private = {
|
|
|
|
id = 0;
|
|
|
|
settings = commonSettings;
|
|
|
|
extensions = commonExtensions;
|
|
|
|
};
|
|
|
|
work = {
|
|
|
|
id = 1;
|
|
|
|
settings = commonSettings;
|
|
|
|
extensions = commonExtensions
|
2024-04-30 22:48:43 +02:00
|
|
|
++ (with firefox-addons; [ bitwarden react-devtools reduxdevtools ]);
|
2023-04-12 20:59:05 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|