Nix-Configs/configs/programs/firefox.nix

110 lines
3.4 KiB
Nix
Raw Normal View History

2022-12-18 15:15:15 +00:00
pkgs: {
enable = true;
profiles = { nixos = {
name = "NixOS Profile";
settings = {
"media.ffmpeg.vaapi.enabled" = true;
"browser.startup.homepage" = "https://ipfs.io/ipfs/QmcnP6Fa2cs8SMLAMC12caF1pFoso4ZKU8FLKagFtKGfa1";
"browser.cache.disk.capacity" = 536870912; # 1 GiB
"extensions.pocket.enabled" = false;
2023-01-11 20:00:08 +00:00
"browser.eme.ui.enabled" = false; # DRM popup
2023-02-09 19:22:05 +00:00
"image.jxl.enabled" = true;
2023-12-18 16:04:14 +00:00
"xpinstall.signatures.required" = true;
2023-01-16 16:24:18 +00:00
"browser.search.suggest.enabled" = false;
2023-12-18 16:04:14 +00:00
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
"browser.aboutConfig.showWarning" = false;
2023-09-29 14:49:54 +00:00
# Privacy Shit
"privacy.firstparty.isolate" = true;
"privacy.trackingprotection.enabled" = true;
"media.peerconnection.ice.default_address_only" = true;
"toolkit.telemetry.log.level" = "Fatal";
"toolkit.telemetry.server" = "";
"toolkit.telemetry.shutdownPingSender.enabled" = false;
"toolkit.telemetry.newProfilePing.enabled" = false;
"toolkit.telemetry.prioping.enabled" = true;
"datareporting.healthreport.uploadEnabled" = false;
"toolkit.telemetry.enabled" = false;
"toolkit.telemetry.archive.enabled" = false;
"toolkit.telemetry.unified" = false;
"toolkit.telemetry.pioneer-new-studies-available" = false;
2022-12-18 15:15:15 +00:00
};
search.force = true;
search.default = "DuckDuckGo";
search.engines = {
"YouTube" = {
urls = [{
template = "https://youtube.com/results";
params = [
{name = "search_query"; value = "{searchTerms}";}
{name = "page"; value = "{startPage}";}
];
}];
iconUpdateURL = "https://www.youtube.com/favicon.ico";
updateInterval = 7 * 24 * 60 * 60 * 1000; # every week
definedAliases = [ "!yt" ];
};
2023-12-18 16:05:08 +00:00
"Wiktionary" = {
urls = [{
template = "https://en.wiktionary.org/w/index.php";
params = [
{name = "search"; value = "{searchTerms}";}
{name = "page"; value = "{startPage}";}
];
}];
iconUpdateURL = "https://en.wiktionary.org/static/favicon/wiktionary/en.ico";
updateInterval = 30 * 24 * 60 * 60 * 1000; # every month
definedAliases = [ "!wt" ];
};
2022-12-18 15:15:15 +00:00
"ArchWiki" = {
urls = [{
template = "https://wiki.archlinux.org/index.php";
params = [
{name = "search"; value = "{searchTerms}";}
{name = "title"; value = "Special:Search";}
];
}];
iconUpdateURL = "https://wiki.archlinux.org/favicon.ico";
updateInterval = 7 * 24 * 60 * 60 * 1000; # every week
definedAliases = [ "!a" ];
};
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 7 * 24 * 60 * 60 * 1000; # every week
definedAliases = [ "!nix" ];
};
2023-01-17 01:26:39 +00:00
"Anna's Archive" = {
urls = [
2023-01-17 03:21:03 +00:00
{
template = "https://annas-archive.org/search";
params = [
{name = "q"; value = "{searchTerms}";}
];
}
2023-01-17 01:26:39 +00:00
];
iconUpdateURL = "https://annas-archive.org/favicon.ico";
updateInterval = 7 * 24 * 60 * 60 * 1000; # every week
definedAliases = [ "!aa" ];
};
"GitHub" = {
urls = [
2023-01-17 03:21:03 +00:00
{
template = "https://github.com/search";
params = [
{name = "q"; value = "{searchTerms}";}
];
}
2023-01-17 01:26:39 +00:00
];
iconUpdateURL = "https://github.com/favicon.ico";
updateInterval = 7 * 24 * 60 * 60 * 1000; # every week
definedAliases = [ "!gh" ];
};
2022-12-18 15:15:15 +00:00
"Wikipedia (en)".metaData.alias = "!w";
"Google".metaData.alias = "!g";
"Bing".metaData.hidden = true;
};
};};
2023-01-17 01:26:39 +00:00
}