nix/common/dotfiles/firefox.nix

73 lines
2.1 KiB
Nix
Raw Normal View History

2023-07-01 15:24:37 +02:00
{ config, pkgs, ... }: {
programs.firefox = {
enable = true;
2023-07-01 16:10:50 +02:00
package = pkgs.firefox.override {
cfg = {
CaptivePortal = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DisableFirefoxAccounts = false;
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
OfferToSaveLoginsDefault = false;
PasswordManagerEnabled = false;
FirefoxHome = {
Search = true;
Pocket = false;
Snippets = false;
TopSites = false;
Highlights = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
};
};
2023-07-01 15:24:37 +02:00
profiles.default = {
2023-07-01 16:10:50 +02:00
isDefault = true;
name = "default";
2023-07-01 15:24:37 +02:00
settings = {
"browser.startup.homepage" = "https://searx.sysctl.io";
"browser.search.region" = "US";
"browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "en-US";
"general.useragent.locale" = "en-US";
"browser.bookmarks.showMobileBookmarks" = false;
"browser.newtabpage.pinned" = [{
title = "Blank";
url = "about:blank";
}];
};
2023-07-01 16:10:50 +02:00
search.default = "DuckDuckGo";
2023-07-01 15:24:37 +02:00
search.force = true;
search.order = [
"DuckDuckGo"
];
search.engines = {
2023-07-01 15:25:57 +02:00
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
2023-07-01 15:24:37 +02:00
2023-07-01 15:25:57 +02:00
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
2023-07-01 15:24:37 +02:00
2023-07-01 15:25:57 +02:00
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000; # every day
definedAliases = [ "@nw" ];
};
2023-07-01 15:24:37 +02:00
};
};
2023-07-01 15:25:57 +02:00
};
2023-07-01 16:10:50 +02:00
}