nixos/home/firefox/default.nix

163 lines
5.2 KiB
Nix
Raw Normal View History

{ pkgs, ... }: {
programs.firefox = {
enable = true;
2023-06-27 11:41:18 +01:00
profiles.default = {
settings = {
"app.shield.optoutstudies.enabled" = false;
"browser.bookmarks.addedImportButton" = true;
"browser.bookmarks.showMobileBookmarks" = true;
"browser.toolbars.bookmarks.visibility" = "newtab";
"browser.contentblocking.category" = "strict";
"browser.search.region" = "GB";
"browser.search.isUS" = false;
"browser.warnOnQuitShortcut" = false;
"distribution.searchplugins.defaultLocale" = "en-GB";
"doh-rollout.home-region" = "GB";
"extensions.activeThemeID" = "firefox-alpenglow@mozilla.org";
"extensions.formautofill.creditCards.enabled" = false;
"general.useragent.locale" = "en-GB";
"intl.accept_languages" = "en-gb,en";
"intl.locale.requested" = "en-gb,en";
"intl.regional_prefs.use_os_locales" = false;
"media.eme.enabled" = true;
"privacy.webrtc.legacyGlobalIndicator" = false;
"signon.management.page.breach-alerts.enabled" = false;
"signon.rememberSignons" = false;
"browser.newtabpage.pinned" = [
{
title = "NixOS Wiki";
url = "https://nixos.wiki";
}
{
title = "Arch Wiki";
2023-08-08 09:04:19 +01:00
url = "https://wiki.archlinux.org";
}
{
title = "Hyprland Wiki";
url = "https://wiki.hyprland.org";
}
2023-09-04 09:52:55 +01:00
{
title = "WhatsApp Web";
url = "https://web.whatsapp.com";
}
];
};
2023-06-16 08:48:18 +01:00
search = {
default = "DuckDuckGo";
force = true;
order = [ "DuckDuckGo" ];
2023-06-16 08:48:18 +01:00
engines = {
2023-08-30 08:57:48 +01:00
"OpenStreetMap" = {
urls = [{
template =
"https://www.openstreetmap.org/search?query={searchTerms}";
}];
definedAliases = [ "@om" ];
};
"NixOS Packages" = {
urls = [{
template =
"http://search.nixos.org/packages?channel=unstable&size=50&sort=relevance&type=packages&query={searchTerms}";
}];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
2023-06-16 08:48:18 +01:00
};
"NixOS Options" = {
urls = [{
template =
"http://search.nixos.org/options?channel=unstable&size=50&sort=relevance&type=packages&query={searchTerms}";
}];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"Home Manager Options" = {
urls = [{
template =
"https://mipmip.github.io/home-manager-option-search/?query={searchTerms}";
}];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@hm" ];
};
2023-08-22 10:19:19 +01:00
"PyPI packages" = {
urls = [{ template = "https://pypi.org/search/?q={searchTerms}"; }];
definedAliases = [ "@py" ];
};
2023-06-16 08:48:18 +01:00
"NixOS Wiki" = {
urls = [{
template = "https://nixos.wiki/index.php?search={searchTerms}";
}];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@nw" ];
2023-06-16 08:48:18 +01:00
};
"Arch Wiki" = {
urls = [{
template =
"https://wiki.archlinux.org/index.php?search={searchTerms}";
}];
definedAliases = [ "@aw" ];
};
"GitHub" = {
urls =
[{ template = "https://github.com/search?q={searchTerms}"; }];
definedAliases = [ "@gh" ];
};
"MyNixOS" = {
urls =
[{ template = "https://mynixos.com/search?q={searchTerms}"; }];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@mn" ];
};
2023-06-16 08:48:18 +01:00
};
};
bookmarks = [
{
name = "Wikipedia";
tags = [ "wiki" ];
keyword = "wiki";
url = "https://en.wikipedia.org";
}
{
name = "NixOS Wiki";
tags = [ "wiki" "nix" ];
url = "https://nixos.wiki/";
}
{
name = "Arch Wiki";
tags = [ "wiki" "arch" ];
url = "https://wiki.archlinux.org/";
}
2023-08-08 09:04:19 +01:00
{
name = "Hyprland Wiki";
tags = [ "wiki" "hyprland" "wayland" "wlroots" ];
url = "https://wiki.hyprland.org/";
}
{
name = "Gitea";
tags = [ "git" "source" "xenia" ];
url = "https://git.xenia.me.uk";
}
{
name = "GitHub";
tags = [ "git" "source" ];
url = "https://github.com";
}
{
name = "GitLab";
tags = [ "git" "source" ];
url = "https://gitlab.com";
}
2023-09-04 09:52:55 +01:00
{
title = "WhatsApp Web";
tags = [ "chat" "messaging" ];
url = "https://web.whatsapp.com";
}
];
};
};
}