configuration.nix/home/programs/firefox.nix

184 lines
6.9 KiB
Nix
Raw Normal View History

2023-11-26 22:01:39 +05:30
_: {
2023-03-15 22:11:59 +05:30
programs = {
firefox = {
enable = true;
2023-11-26 21:22:54 +05:30
policies = {
DisableAppUpdate = true;
DisableFirefoxAccounts = true;
DisableFirefoxStudies = true;
DisableFormHistory = true;
DisablePocket = true;
DisableTelemetry = true;
DisplayBookmarksToolbar = "newtab";
DontCheckDefaultBrowser = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
EmailTracking = true;
Fingerprinting = true;
};
ExtensionSettings = {
"{b743f56d-1cc1-4048-8ba6-f9c2ab7aa54d}" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/dracula-dark-colorscheme/latest.xpi";
2023-11-26 13:05:09 +05:30
};
2023-11-26 21:22:54 +05:30
"{d634138d-c276-4fc8-924b-40a0ea21d284}" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/1password-x-password-manager/latest.xpi";
2023-03-25 22:10:09 +05:30
};
2023-11-26 21:22:54 +05:30
"uBlock0@raymondhill.net" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
2023-03-15 22:11:59 +05:30
};
2024-01-04 21:51:14 +05:30
"addon@darkreader.org" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
};
2023-03-25 22:10:09 +05:30
};
2023-11-26 21:22:54 +05:30
FirefoxHome = {
Search = true;
TopSites = false;
SponsoredTopSites = false;
Highlights = false;
Pocket = false;
SponsoredPocket = false;
Snippets = false;
Locked = true;
};
FirefoxSuggest = {
WebSuggestions = false;
SponsoredSuggestions = false;
ImproveSuggest = false;
Locked = true;
};
Homepage = {
StartPage = "previous-session";
Locked = true;
};
NetworkPrediction = false;
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
PasswordManagerEnabled = false;
PrimaryPassword = false;
SearchSuggestEnabled = false;
UserMessaging = {
WhatsNew = false;
ExtensionRecommendations = false;
FeatureRecommendations = false;
UrlbarInterventions = false;
SkipOnboarding = true;
MoreFromMozilla = false;
Locked = true;
};
Preferences = {
"accessibility.force_disabled" = { Value = 1; Status = "locked"; };
"browser.crashReports.unsubmittedCheck.autoSubmit2" = { Value = false; Status = "locked"; };
"browser.aboutConfig.showWarning" = { Value = false; Status = "locked"; };
"browser.aboutHomeSnippets.updateUrl" = { Value = ""; Status = "locked"; };
"browser.selfsupport.url" = { Value = ""; Status = "locked"; };
"browser.startup.homepage_override.mstone" = { Value = "ignore"; Status = "locked"; };
"browser.startup.homepage_override.buildID" = { Value = ""; Status = "locked"; };
"browser.tabs.firefox-view" = { Value = false; Status = "locked"; };
"browser.tabs.firefox-view-next" = { Value = false; Status = "locked"; };
"browser.urlbar.suggest.history" = { Value = false; Status = "locked"; };
"browser.urlbar.suggest.topsites" = { Value = false; Status = "locked"; };
"dom.security.https_only_mode" = { Value = true; Status = "locked"; };
"extensions.htmlaboutaddons.recommendations.enabled" = { Value = false; Status = "locked"; };
"extensions.recommendations.themeRecommendationUrl" = { Value = ""; Status = "locked"; };
"network.IDN_show_punycode" = { Value = true; Status = "locked"; };
"network.trr.mode" = { Value = 5; Status = "locked"; };
"signon.management.page.breach-alerts.enabled" = { Value = false; Status = "locked"; };
};
2023-03-25 22:10:09 +05:30
};
2023-03-15 22:11:59 +05:30
profiles.default = {
id = 0;
name = "Default";
isDefault = true;
2023-11-26 21:22:54 +05:30
search = {
default = "DuckDuckGo";
engines = {
"Bing".metaData.hidden = true;
"Google".metaData.hidden = true;
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{ name = "channel"; value = "unstable"; }
2023-11-26 21:22:54 +05:30
{ name = "query"; value = "{searchTerms}"; }
];
}
];
2024-05-28 19:17:18 +05:30
iconUpdateURL = "https://nixos.org/favicon.png";
2023-11-26 21:22:54 +05:30
definedAliases = [ "@np" ];
};
2023-11-26 21:44:03 +05:30
"NixOS Options" = {
urls = [
{
template = "https://search.nixos.org/options";
params = [
{ name = "channel"; value = "unstable"; }
2023-11-26 21:44:03 +05:30
{ name = "query"; value = "{searchTerms}"; }
];
}
];
2024-05-28 19:17:18 +05:30
iconUpdateURL = "https://nixos.org/favicon.png";
2023-11-26 21:44:03 +05:30
definedAliases = [ "@no" ];
};
2023-11-26 21:49:16 +05:30
"GitHub" = {
urls = [
{
template = "https://github.com/search";
params = [
{ name = "q"; value = "{searchTerms}"; }
{ name = "type"; value = "repositories"; }
];
}
];
2023-11-26 22:01:39 +05:30
iconUpdateURL = "https://github.com/favicon.ico";
2023-11-26 21:49:16 +05:30
definedAliases = [ "@gh" ];
};
2024-03-10 10:29:43 +05:30
"Docker Hub" = {
urls = [
{
template = "https://hub.docker.com/search";
params = [
{ name = "q"; value = "{searchTerms}"; }
];
}
];
iconUpdateURL = "https://hub.docker.com/favicon.ico";
definedAliases = [ "@docker" ];
};
2023-11-26 21:49:16 +05:30
"YouTube" = {
urls = [
{
template = "https://www.youtube.com/results";
params = [
{ name = "search_query"; value = "{searchTerms}"; }
];
}
];
2023-11-26 22:01:39 +05:30
iconUpdateURL = "https://www.youtube.com/favicon.ico";
2023-11-26 21:49:16 +05:30
definedAliases = [ "@yt" ];
};
2023-11-26 21:22:54 +05:30
};
force = true;
};
2023-03-15 22:11:59 +05:30
settings = {
"app.shield.optoutstudies.enabled" = false;
"privacy.donottrackheader.enabled" = true;
"privacy.firstparty.isolate" = true;
2023-11-26 15:29:22 +05:30
"privacy.globalprivacycontrol.enabled" = true;
"startup.homepage_override_url" = "";
2023-03-15 22:11:59 +05:30
"startup.homepage_welcome_url" = "";
"startup.homepage_welcome_url.additional" = "";
};
};
};
};
}