2022-07-01 04:45:26 +03:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [".mozilla"];
|
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.firefox-wayland.override {
|
|
|
|
extraPrefs = ''
|
|
|
|
lockPref("privacy.resistFingerprinting.letterboxing", false);
|
|
|
|
lockPref("browser.startup.homepage", "about:home");
|
|
|
|
lockPref("browser.newtabpage.enabled", true);
|
|
|
|
lockPref("browser.startup.page", 1);
|
|
|
|
lockPref("privacy.clearOnShutdown.downloads", false);
|
|
|
|
lockPref("privacy.clearOnShutdown.formdata", false);
|
|
|
|
lockPref("privacy.clearOnShutdown.history", false);
|
|
|
|
lockPref("privacy.clearOnShutdown.offlineApps", false);
|
|
|
|
lockPref("privacy.clearOnShutdown.sessions", false);
|
2022-07-01 15:58:41 +03:00
|
|
|
lockPref("privacy.clearOnShutdown.cookies", false);
|
2022-07-01 04:45:26 +03:00
|
|
|
lockPref("services.sync.engine.passwords", false);
|
2022-07-15 14:12:50 +03:00
|
|
|
lockPref("network.cookie.lifetimePolicy", 0);
|
2023-09-21 21:55:07 +03:00
|
|
|
lockPref("gfx.webrender.all", true);
|
|
|
|
lockPref("media.ffmpeg.vaapi.enabled", true);
|
|
|
|
lockPref("media.hardware-video-decoding.force-enabled", true);
|
2022-07-01 04:45:26 +03:00
|
|
|
'';
|
|
|
|
extraPolicies = {
|
|
|
|
CaptivePortal = false;
|
|
|
|
DisableFirefoxStudies = true;
|
|
|
|
DisablePocket = true;
|
|
|
|
DisableTelemetry = true;
|
|
|
|
DisableFirefoxAccounts = true;
|
|
|
|
FirefoxHome = {
|
|
|
|
Pocket = false;
|
|
|
|
Snippets = false;
|
|
|
|
};
|
|
|
|
UserMessaging = {
|
|
|
|
ExtensionRecommendations = false;
|
|
|
|
SkipOnboarding = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
profiles = {
|
|
|
|
default = {
|
|
|
|
id = 0;
|
|
|
|
isDefault = false;
|
|
|
|
name = "defaulta";
|
|
|
|
};
|
|
|
|
personal = {
|
|
|
|
id = 1;
|
|
|
|
isDefault = true;
|
|
|
|
name = "personal";
|
2023-09-21 21:55:07 +03:00
|
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; let
|
|
|
|
myExtensions =
|
|
|
|
pkgs.callPackage ./extensions.nix {inherit buildFirefoxXpiAddon;};
|
|
|
|
in
|
|
|
|
[
|
|
|
|
ublock-origin
|
|
|
|
darkreader
|
|
|
|
bitwarden
|
|
|
|
refined-github
|
|
|
|
]
|
|
|
|
++ (with myExtensions; [
|
|
|
|
youtube-disable-number-seek
|
2023-09-24 20:11:47 +03:00
|
|
|
styl-us
|
|
|
|
showdex
|
2023-09-21 21:55:07 +03:00
|
|
|
]);
|
2022-07-01 04:45:26 +03:00
|
|
|
extraConfig = builtins.readFile (
|
|
|
|
builtins.fetchurl {
|
2023-09-21 21:55:07 +03:00
|
|
|
url = "https://raw.githubusercontent.com/arkenfox/user.js/115.1/user.js";
|
|
|
|
sha256 = "sha256:0x0xkbhmb53lyfpbc8wmm44dgr4zrn15b2pc6gny08mh5j4ny8m7";
|
2022-07-01 04:45:26 +03:00
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|