nix-config/home/librewolf.nix

114 lines
2.5 KiB
Nix
Raw Permalink Normal View History

{
pkgs,
lib,
nixosConfig,
...
}:
let
inherit (nixosConfig._module.specialArgs) nix-config;
2024-11-08 01:32:55 +01:00
inherit (lib) singleton;
2024-09-12 23:35:43 +02:00
search = {
force = true;
default = "Mullvad";
privateDefault = "Mullvad";
engines = {
Mullvad = {
urls = singleton {
template = "https://leta.mullvad.net";
params = singleton {
name = "q";
value = "{searchTerms}";
};
2024-09-12 23:35:43 +02:00
};
2024-09-02 01:29:44 +02:00
2024-09-12 23:35:43 +02:00
icon = "${pkgs.mullvad-vpn}/share/icons/hicolor/32x32/apps/mullvad-vpn.png";
};
2024-09-02 01:29:44 +02:00
2024-09-12 23:35:43 +02:00
"goo.ne.jp" = {
urls = singleton {
template = "https://search.goo.ne.jp/web.jsp";
2024-09-02 01:29:44 +02:00
2024-09-12 23:35:43 +02:00
params = singleton {
name = "MT";
value = "{searchTerms}";
2024-09-02 01:29:44 +02:00
};
2024-09-12 23:35:43 +02:00
};
2024-09-12 23:35:43 +02:00
icon = pkgs.fetchurl {
url = "https://search.goo.ne.jp/favicon.ico";
hash = "sha256-luYqjziIpHgIJPbryjFjera3Fdbbj/fO6SNyDbnEZj0=";
};
};
2024-09-12 23:35:43 +02:00
Google.metaData.hidden = true;
Bing.metaData.hidden = true;
DuckDuckGo.metaData.hidden = true;
"Wikipedia (en)".metaData.hidden = true;
};
};
settings = {
"extensions.autoDisableScopes" = 0;
2024-09-12 23:35:43 +02:00
"middlemouse.paste" = false;
2023-06-17 02:15:45 +02:00
2024-09-12 23:35:43 +02:00
"browser.download.useDownloadDir" = true;
"browser.tabs.insertAfterCurrent" = true;
"browser.tabs.warnOnClose" = true;
"browser.toolbars.bookmarks.visibility" = "never";
"browser.quitShortcut.disabled" = true;
"browser.sessionstore.restore_pinned_tabs_on_demand" = true;
2024-09-12 23:35:43 +02:00
"browser.urlbar.suggest.bookmark" = false;
"browser.urlbar.suggest.engines" = false;
"browser.urlbar.suggest.history" = false;
"browser.urlbar.suggest.openpage" = false;
"browser.urlbar.suggest.topsites" = false;
"browser.urlbar.trimHttps" = true;
2023-06-17 02:15:45 +02:00
2024-09-12 23:35:43 +02:00
"sidebar.position_start" = false;
"findbar.highlightAll" = true;
2024-09-12 23:35:43 +02:00
"xpinstall.signatures.required" = false;
2024-10-06 13:29:34 +02:00
"apz.overscroll.enabled" = false;
2024-10-06 13:29:48 +02:00
"browser.tabs.hoverPreview.enabled" = true;
2024-10-06 13:29:34 +02:00
2024-09-12 23:35:43 +02:00
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};
in
{
programs.librewolf = {
enable = true;
package = pkgs.librewolf.override {
cfg.speechSynthesisSupport = false;
};
profiles = {
default = {
extensions = with nix-config.packages.${pkgs.system}; [
ublock-origin
yomitan
redlib
new-tab-identity
showdex
];
inherit settings search;
};
2024-09-12 23:35:43 +02:00
work = {
id = 1;
2024-09-12 23:35:43 +02:00
inherit settings search;
};
2023-06-17 02:15:45 +02:00
};
};
}