nixos-system-config/modules/nixos/multimedia/web/firefox.nix

79 lines
1.9 KiB
Nix
Raw Normal View History

2025-01-24 22:13:40 +01:00
{ username, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
tor-browser
];
environment.persistence."/nix/config" = {
users."${username}".directories = [
".config/mozilla"
];
};
programs.firefox = {
enable = true;
2025-01-24 22:15:56 +01:00
package = pkgs.firefox-esr;
2025-01-24 22:13:40 +01:00
policies = {
EnableTrackingProtection = {
Value = true;
Cryptomining = true;
Fingerprinting = true;
EmailTracking = true;
2025-01-24 23:19:57 +01:00
Level = "strict";
2025-01-24 22:13:40 +01:00
};
DisableTelemetry = true;
DisablePocket = true;
DisableFirefoxStudies = true;
DisableFirefoxAccounts = false;
DisableAccounts = false;
DontCheckDefaultBrowser = true;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
NoDefaultBookmarks = true;
Cookies = {
Behaviour = "reject-foreign";
BehaviourPrivateBrowsing = "reject-foreign";
};
2025-01-24 23:19:57 +01:00
UserMessaging = {
WhatsNew = false;
ExtensionRecommendations = false;
FeatureRecommendations = false;
UrlbarInterventions = false;
SkipOnboarding = true;
MoreFromMozilla = false;
};
FirefoxHome = {
Search = true;
TopSites = true;
SponsoredTopSites = false;
Highlights = false;
Pocket = false;
SponsoredPocket = false;
Snippets = false;
Locked = true;
};
SearchSuggestEnabled = false;
ShowSearchSuggestionsFirst = false;
NewTabPage = false;
2025-01-24 22:13:40 +01:00
SearchEngines = { # ESR only
2025-01-24 23:17:35 +01:00
Add = [
{
Name = "Kagi";
URLTemplate = "https://kagi.com/search?q={searchTerms}";
Method = "GET";
IconURL = "https://kagi.com/favicon.ico";
Alias = "@k";
Default = true;
}
];
2025-01-24 22:13:40 +01:00
Remove = [ "Bing" "Google" "DuckDuckGo" "Wikipedia (en)" ];
};
};
};
}