nixos-config/home/modules/firefox.nix

106 lines
3.3 KiB
Nix
Raw Normal View History

2024-02-22 19:01:16 +01:00
{ inputs, outputs, config, pkgs, ... }:
with inputs;
{
2024-02-12 20:08:44 +01:00
home.sessionVariables.DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox";
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
cfg = {
enableGnomeExtensions = true;
};
};
profiles.xqtc = {
isDefault = true;
extensions = with inputs.firefox-addons.packages.${pkgs.system}; [
ublock-origin
bitwarden
sidebery
leechblock-ng
2024-02-12 20:08:44 +01:00
darkreader
2024-02-23 13:08:52 +01:00
stylus
vimium-c
2024-02-12 20:08:44 +01:00
noscript
];
search = {
2024-02-22 19:01:16 +01:00
default = "SearX";
2024-02-12 20:08:44 +01:00
force = true;
engines = {
2024-02-22 19:01:16 +01:00
"SearX" = {
urls = [{
template = "https://searx.org/search";
params = [
{ name = "q"; value = "{searchTerms}"; }
];
}];
};
2024-02-12 20:08:44 +01:00
"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" ];
};
2024-02-22 19:01:16 +01:00
"Nix Options" = {
urls = [{
template = "https://search.nixos.org/options";
params = [
{ name = "type"; value = "options"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@no" ];
};
2024-02-12 20:08:44 +01:00
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000; # every day
definedAliases = [ "@nw" ];
};
"Bing".metaData.hidden = true;
"Google".metaData.hidden = true;
"DuckDuckGo".metaData.alias = "@ddg";
};
};
settings = {
"app.normandy.first_run" = false;
"app.shield.optoutstudies.enabled" = false;
"privacy.donotttrackheader.enabled" = true;
2024-02-22 19:01:16 +01:00
"browser.startup.homepage" = "https://xqtc161.github.io";
2024-02-12 20:08:44 +01:00
"browser.search.region" = "DE";
"browser.search.isUS" = false;
"browser.theme.content-theme" = "0";
"browser.theme.toolbar-theme" = "0";
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsored" = false;
"services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.toolbars.bookmarks.visibility" = "never";
"general.useragent.locale" = "de-DE";
"distribution.searchplugins.defaultLocale" = "de-DE";
"signon.rememberSignons" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; # Needed to allow userChrome.css
};
userChrome = ''
2024-02-23 13:08:52 +01:00
@import "firefox-gnome-theme/userChrome.css";
#TabsToolbar {
display: none; !important
}
2024-02-12 20:08:44 +01:00
#sidebar-header {
display: none;
}
'';
};
};
}