2024-08-16 06:22:14 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-09-09 05:14:11 +02:00
|
|
|
nixosConfig,
|
2024-08-16 06:22:14 +02:00
|
|
|
...
|
|
|
|
}:
|
2024-05-26 11:39:55 +02:00
|
|
|
|
2024-08-13 23:13:47 +02:00
|
|
|
let
|
2024-09-09 05:54:29 +02:00
|
|
|
inherit (nixosConfig._module.specialArgs) nix-config;
|
|
|
|
|
2024-08-27 19:22:46 +02:00
|
|
|
inherit (lib) mkIf singleton;
|
2024-08-30 19:37:28 +02:00
|
|
|
inherit (nix-config.packages.${pkgs.system}) friendlyfox;
|
2024-09-09 05:14:11 +02:00
|
|
|
|
|
|
|
isPhone = nixosConfig.programs.calls.enable;
|
2024-08-13 23:13:47 +02:00
|
|
|
in
|
2023-06-17 02:15:45 +02:00
|
|
|
{
|
|
|
|
programs.librewolf = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-08-27 16:58:05 +02:00
|
|
|
package = pkgs.librewolf.override {
|
|
|
|
cfg.speechSynthesisSupport = false;
|
|
|
|
};
|
2024-05-26 11:39:55 +02:00
|
|
|
|
2024-08-13 22:24:10 +02:00
|
|
|
profiles.default = {
|
2024-08-30 19:22:35 +02:00
|
|
|
extensions = with nix-config.packages.${pkgs.system}; [
|
2024-08-31 08:00:29 +02:00
|
|
|
ublock-origin
|
2024-08-16 05:38:11 +02:00
|
|
|
yomitan
|
2024-08-30 19:35:48 +02:00
|
|
|
redlib
|
2024-08-31 02:22:56 +02:00
|
|
|
new-tab-identity
|
2024-09-02 00:59:30 +02:00
|
|
|
showdex
|
2024-09-06 00:56:02 +02:00
|
|
|
invidious
|
2024-08-16 05:38:11 +02:00
|
|
|
];
|
|
|
|
|
2024-08-13 22:24:10 +02:00
|
|
|
search = {
|
|
|
|
force = true;
|
|
|
|
default = "Mullvad";
|
|
|
|
privateDefault = "Mullvad";
|
|
|
|
|
|
|
|
engines = {
|
|
|
|
Mullvad = {
|
2024-08-27 19:22:46 +02:00
|
|
|
urls = singleton {
|
|
|
|
template = "https://leta.mullvad.net";
|
|
|
|
|
|
|
|
params = singleton {
|
|
|
|
name = "q";
|
|
|
|
value = "{searchTerms}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-13 22:24:10 +02:00
|
|
|
icon = "${pkgs.mullvad-vpn}/share/icons/hicolor/32x32/apps/mullvad-vpn.png";
|
|
|
|
};
|
2024-09-02 01:29:44 +02:00
|
|
|
|
|
|
|
"goo.ne.jp" = {
|
|
|
|
urls = singleton {
|
|
|
|
template = "https://search.goo.ne.jp/web.jsp";
|
|
|
|
|
|
|
|
params = singleton {
|
|
|
|
name = "MT";
|
|
|
|
value = "{searchTerms}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
icon = pkgs.fetchurl {
|
|
|
|
url = "https://search.goo.ne.jp/favicon.ico";
|
|
|
|
hash = "sha256-luYqjziIpHgIJPbryjFjera3Fdbbj/fO6SNyDbnEZj0=";
|
|
|
|
};
|
|
|
|
};
|
2024-09-06 03:04:57 +02:00
|
|
|
|
|
|
|
Google.metaData.hidden = true;
|
|
|
|
Bing.metaData.hidden = true;
|
|
|
|
DuckDuckGo.metaData.hidden = true;
|
|
|
|
"Wikipedia (en)".metaData.hidden = true;
|
2024-08-13 22:24:10 +02:00
|
|
|
};
|
|
|
|
};
|
2024-08-16 05:55:57 +02:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
"extensions.autoDisableScopes" = 0;
|
2024-08-13 22:24:10 +02:00
|
|
|
|
2024-08-31 16:19:31 +02:00
|
|
|
"middlemouse.paste" = false;
|
2023-06-17 02:15:45 +02:00
|
|
|
|
2024-08-31 16:19:31 +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-05-20 17:06:12 +02:00
|
|
|
|
2024-08-31 16:19:31 +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-08-31 16:19:31 +02:00
|
|
|
"sidebar.position_start" = false;
|
|
|
|
"findbar.highlightAll" = true;
|
2024-05-19 20:32:52 +02:00
|
|
|
|
2024-08-31 16:19:31 +02:00
|
|
|
"xpinstall.signatures.required" = false;
|
2024-07-21 19:27:54 +02:00
|
|
|
|
2024-08-31 16:19:31 +02:00
|
|
|
"network.dns.native_https_query" = false;
|
2024-08-31 16:02:47 +02:00
|
|
|
|
2024-08-31 16:19:31 +02:00
|
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
|
|
};
|
2023-06-17 02:15:45 +02:00
|
|
|
};
|
|
|
|
};
|
2024-08-13 23:13:47 +02:00
|
|
|
|
2024-09-09 05:14:11 +02:00
|
|
|
home.file = mkIf isPhone {
|
2024-08-13 23:13:47 +02:00
|
|
|
".librewolf/default/chrome/userChrome.css".source = "${friendlyfox}/userChrome.css";
|
|
|
|
".librewolf/default/chrome/userContent.css".source = "${friendlyfox}/userContent.css";
|
|
|
|
};
|
2023-06-17 02:15:45 +02:00
|
|
|
}
|