2022-07-01 04:45:26 +03:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2023-11-11 18:39:26 +03:00
|
|
|
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [
|
|
|
|
".mozilla"
|
|
|
|
".floorp"
|
|
|
|
];
|
|
|
|
home.packages = [(pkgs.lib.hiPrio pkgs.floorp)];
|
2022-07-01 04:45:26 +03:00
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
2024-01-23 02:11:22 +03:00
|
|
|
package = pkgs.firefox.override {
|
2022-07-01 04:45:26 +03:00
|
|
|
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
|
|
|
showdex
|
2023-11-02 22:14:22 +03:00
|
|
|
better-twitter-extension
|
|
|
|
better-clean-twitter
|
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
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|