1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-31 15:03:37 +00:00
.dotfiles/nixos/home/firefox.nix

117 lines
4.5 KiB
Nix
Raw Normal View History

2024-12-20 03:52:48 +00:00
{ pkgs, ... }: {
programs.firefox = {
enable = true;
2025-01-02 01:38:38 +00:00
policies = {
DisableTelemetry = true;
DisableFirefoxStudies = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
DisablePocket = true;
ExtensionUpdate = false;
FirefoxHome = {
SponsoredTopSites = false;
Highlights = false;
Pocket = false;
SponsoredPocket = false;
};
FirefoxSuggest = {
SponsoredSuggestions = false;
};
};
2024-12-20 03:52:48 +00:00
profiles.default = {
isDefault = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
canvasblocker
catppuccin-gh-file-explorer
privacy-badger
stylus
ublock-origin
violentmonkey
];
settings = {
2025-01-02 01:38:38 +00:00
"browser.aboutConfig.showWarning" = false;
2024-12-20 03:52:48 +00:00
"browser.newtabpage.activity-stream.default.sites" = "https://en.wikipedia.org/";
"browser.newtabpage.activity-stream.discoverystream.enabled" = false;
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "";
"browser.newtabpage.activity-stream.newtabWallpapers.wallpaper" = "dark-beach";
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.telemetry" = false;
"browser.newtabpage.activity-stream.topSitesRows" = 2;
"browser.newtabpage.pinned" = [
{
url = "https://discord.com/app/";
label = "Discord";
}
{
url = "https://pikidiary.lol/";
label = "PikiDiary";
}
{
url = "https://en.wikipedia.org/";
label = "Wikipedia";
}
];
"datareporting.healthreport.uploadEnabled" = false;
"font.name.monospace.x-western" = "Fira Code";
"layout.css.prefers-color-scheme.content-override" = 0;
};
bookmarks = [
{
name = "NixOS search";
url = "https://search.nixos.org/packages";
}
{
name = "Home Manager search";
url = "https://home-manager-options.extranix.com/";
}
{
name = "NUR search";
url = "https://nur.nix-community.org/";
}
{
name = "NixOS wiki";
url = "https://nixos.wiki/";
}
2025-01-02 01:38:38 +00:00
{
name = "Nix functions";
url = "https://teu5us.github.io/nix-lib.html";
}
2024-12-20 03:52:48 +00:00
];
search = {
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";
};
2024-12-31 05:51:54 +00:00
"Manpages" = {
urls = [{
template = "https://www.mankier.com/";
params = [
{ name = "q"; value = "{searchTerms}"; }
];
}];
};
2024-12-20 03:52:48 +00:00
"Bing".metaData.hidden = true;
"Google".metaData.hidden = true;
};
order = [ "DuckDuckGo" "Nix packages" ];
force = true;
};
};
};
}