98 lines
2.3 KiB
Nix
98 lines
2.3 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.firefox = {
|
|
enable = true;
|
|
|
|
profiles.default = {
|
|
containersForce = true;
|
|
containers = {
|
|
social = {
|
|
color = "turquoise";
|
|
icon = "fence";
|
|
id = 1;
|
|
};
|
|
|
|
shopping = {
|
|
color = "orange";
|
|
icon = "cart";
|
|
id = 2;
|
|
};
|
|
};
|
|
|
|
search = {
|
|
force = true;
|
|
default = "DuckDuckGo";
|
|
engines = {
|
|
"Nix Packages" = {
|
|
urls = [{
|
|
template = "https://search.nixos.org/packages";
|
|
params = [
|
|
{ name = "type"; value = "packages"; }
|
|
{ name = "query"; value = "{searchTerms}"; }
|
|
];
|
|
}];
|
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
definedAliases = [ "@np" ];
|
|
};
|
|
|
|
"NixOS Wiki" = {
|
|
urls = [{ template = "https://wiki.nixos.org/index.php?search={searchTerms}"; }];
|
|
iconUpdateURL = "https://wiki.nixos.org/favicon.png";
|
|
updateInterval = 24 * 60 * 60 * 1000;
|
|
definedAliases = [ "@nw" ];
|
|
};
|
|
|
|
"MyNixOS" = {
|
|
urls = [{ template = "https://mynixos.com/search?q={searchTerms}"; }];
|
|
iconUpdateURL = "https://mynixos.com/favicon-light.svg";
|
|
definedAliases = [ "@mn" "@mw" ];
|
|
};
|
|
|
|
"Bing".metaData.hidden = true;
|
|
"Google".metaData.hidden = true;
|
|
"Amazon.com".metaData.hidden = true;
|
|
"eBay".metaData.hidden = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
policies = {
|
|
DisableFirefoxStudies = true;
|
|
DisableTelemetry = true;
|
|
DisablePocket = true;
|
|
|
|
DontCheckDefaultBrowser = true;
|
|
DownloadDirectory = "\${home}";
|
|
|
|
EnableTrackingProtection = {
|
|
Value = true;
|
|
Locked = false;
|
|
|
|
Cryptomining = true;
|
|
EmailTracking = true;
|
|
Fingerprinting = true;
|
|
|
|
Exceptions = [];
|
|
};
|
|
|
|
FirefoxHome = {
|
|
SponsoredTopSites = false;
|
|
|
|
Pocket = false;
|
|
SponsoredPocket = false;
|
|
};
|
|
|
|
StartDownloadsInTempDirectory = true;
|
|
TranslateEnabled = true;
|
|
|
|
Preferences = {
|
|
"browser.translations.automaticallyPopup" = {
|
|
Value = false;
|
|
Status = "default";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|