Firefox: Add yomitan & make DuckDuckGo default search engine

This commit is contained in:
GHOSCHT 2024-12-15 17:54:02 +01:00
parent c9d6554663
commit 8f84feece6
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -1,10 +1,10 @@
{
inputs,
pkgs,
vars,
...
{ inputs
, pkgs
, ...
}: {
imports = [inputs.arkenfox.hmModules.default];
imports = [ inputs.arkenfox.hmModules.default ];
# Enable kde-connect for non-Plasma DEs
home.file.".mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json".source = "${pkgs.plasma5Packages.plasma-browser-integration}/lib/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json";
programs.firefox = {
@ -26,7 +26,7 @@
gesturefy
plasma-integration
libredirect
# bypass-paywalls-clean
yomitan
];
search.engines = {
@ -48,7 +48,7 @@
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
definedAliases = [ "@np" ];
};
"Home Manager" = {
@ -65,7 +65,7 @@
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@hm"];
definedAliases = [ "@hm" ];
};
"Searx" = {
@ -82,7 +82,7 @@
];
iconUpdateURL = "https://paulgo.io/favicon.ico";
definedAliases = ["@sx"];
definedAliases = [ "@sx" ];
};
"Amazon" = {
@ -99,7 +99,7 @@
];
iconUpdateURL = "https://amazon.de/favicon.ico";
definedAliases = ["@a"];
definedAliases = [ "@a" ];
};
"YouTube" = {
@ -116,11 +116,13 @@
];
iconUpdateURL = "https://piped.video/favicon.ico";
definedAliases = ["yt"];
definedAliases = [ "yt" ];
};
};
search.force = true;
search.default = "Searx";
search = {
force = true;
default = "DuckDuckGo";
};
settings = {
"media.hardwaremediakeys.enabled" = false;
@ -191,9 +193,9 @@
};
xdg.mimeApps.defaultApplications = {
"text/html" = ["firefox.desktop"];
"text/xml" = ["firefox.desktop"];
"x-scheme-handler/http" = ["firefox.desktop"];
"x-scheme-handler/https" = ["firefox.desktop"];
"text/html" = [ "firefox.desktop" ];
"text/xml" = [ "firefox.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
};
}