2024-01-03 05:46:27 +00:00
|
|
|
{pkgs, ...}: {
|
2023-11-05 05:59:16 +00:00
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
2023-11-20 05:50:18 +00:00
|
|
|
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
|
2023-11-10 22:23:47 +00:00
|
|
|
bitwarden
|
|
|
|
canvasblocker
|
|
|
|
sponsorblock
|
|
|
|
xbrowsersync
|
2023-11-05 05:59:16 +00:00
|
|
|
];
|
2023-11-10 22:23:47 +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;
|
2023-11-20 05:50:18 +00:00
|
|
|
"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";
|
2023-11-10 22:23:47 +00:00
|
|
|
};
|
|
|
|
search = {
|
2023-11-13 18:37:16 +00:00
|
|
|
force = true;
|
2023-12-19 02:32:00 +00:00
|
|
|
default = "Catgirl";
|
2023-11-10 22:23:47 +00:00
|
|
|
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";
|
|
|
|
}
|
2023-11-10 22:23:47 +00:00
|
|
|
{
|
|
|
|
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";
|
2023-11-10 22:23:47 +00:00
|
|
|
value = "{searchTerms}";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
definedAliases = ["@cl"];
|
|
|
|
};
|
2023-12-19 02:32:00 +00:00
|
|
|
"Catgirl" = {
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
template = "https://sx.catgirl.cloud/search";
|
|
|
|
params = [
|
|
|
|
{
|
|
|
|
name = "q";
|
|
|
|
value = "{searchTerms}";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
definedAliases = ["@cg"];
|
|
|
|
};
|
2023-11-10 22:23:47 +00:00
|
|
|
"Google".metaData.hidden = true;
|
|
|
|
"Amazon.com".metaData.hidden = true;
|
|
|
|
"Bing".metaData.hidden = true;
|
|
|
|
"eBay".metaData.hidden = true;
|
|
|
|
};
|
|
|
|
};
|
2023-11-20 05:50:18 +00:00
|
|
|
userChrome = ''
|
2023-11-22 03:30:31 +00:00
|
|
|
#firefox-view-button {
|
|
|
|
visibility: collapse;
|
|
|
|
}
|
|
|
|
#alltabs-button {
|
|
|
|
visibility: collapse;
|
|
|
|
}
|
2023-12-19 02:32:00 +00:00
|
|
|
#tabbrowser-tabs {
|
2023-12-28 00:50:48 +00:00
|
|
|
border-inline-start: none !important;
|
2023-11-20 05:50:18 +00:00
|
|
|
}
|
|
|
|
'';
|
2023-11-05 05:59:16 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|