nix-config/users/tacocat/programs/firefox.nix

151 lines
4.4 KiB
Nix
Raw Normal View History

2023-11-20 05:52:13 +00:00
{
pkgs,
...
}: {
2023-11-05 05:59:16 +00:00
programs.firefox = {
enable = true;
policies = {
DisableAppUpdate = true;
DisableFirefoxAccounts = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DontCheckDefaultBrowser = true;
EnableTrackingProtection = true;
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
OfferToSaveLoginsDefault = false;
PasswordManagerEnabled = false;
FirefoxHome = {
Search = true;
Pocket = false;
Snippets = false;
TopSites = false;
Highlights = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
Cookies = {
ExpireAtSessionEnd = true;
RejectTracker = true;
};
SanitizeOnShutdown = {
Cache = true;
Cookies = true;
Downloads = true;
FormData = true;
SiteSettings = true;
History = false;
2023-11-12 06:06:24 +00:00
};
};
2023-11-05 05:59:16 +00:00
profiles = {
"aria" = {
2023-11-10 18:03:26 +00:00
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
2023-12-28 00:50:48 +00:00
vimium
tabcenter-reborn
2023-11-05 05:59:16 +00:00
ublock-origin
bitwarden
canvasblocker
sponsorblock
xbrowsersync
2023-11-05 05:59:16 +00:00
];
settings = {
"browser.aboutConfig.showWarning" = false;
"browser.startup.page" = 1;
"geo.provider.network.url" = "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%";
"intl.accept_languages" = "en-US, en";
"app.update.auto" = false;
"browser.download.useDownloadDir" = false;
"browser.download.manager.addToRecentDocs" = false;
"browser.urlbar.suggest.addons" = false;
"browser.urlbar.suggest.clipboard" = false;
"browser.urlbar.suggest.engines" = false;
"browser.urlbar.suggest.history" = false;
"browser.urlbar.suggest.pocket" = false;
"browser.urlbar.suggest.topsites" = false;
"browser.urlbar.suggest.searches" = false;
"browser.urlbar.suggest.trending" = false;
"browser.tabs.firefox-view" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
2023-11-22 03:30:31 +00:00
"browser.toolbars.bookmarks.visibility" = "never";
2023-12-27 03:42:13 +00:00
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
};
search = {
force = true;
default = "Catgirl";
engines = {
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
2023-11-12 06:06:24 +00:00
{
name = "channel";
value = "unstable";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};
"Celtic Lite" = {
urls = [
{
template = "https://search.celticlite.com/search";
params = [
{
2023-11-12 06:06:24 +00:00
name = "q";
value = "{searchTerms}";
}
];
}
];
definedAliases = ["@cl"];
};
"Catgirl" = {
urls = [
{
template = "https://sx.catgirl.cloud/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
definedAliases = ["@cg"];
};
"Google".metaData.hidden = true;
"Amazon.com".metaData.hidden = true;
"Bing".metaData.hidden = true;
"eBay".metaData.hidden = true;
};
};
userChrome = ''
2023-11-22 03:30:31 +00:00
#firefox-view-button {
visibility: collapse;
}
#alltabs-button {
visibility: collapse;
}
#tabbrowser-tabs {
2023-12-28 00:50:48 +00:00
border-inline-start: none !important;
}
'';
2023-11-05 05:59:16 +00:00
};
};
};
}