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
inputs, , pkgs
pkgs, , ...
vars,
...
}: { }: {
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"; 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 = { programs.firefox = {
@ -26,7 +26,7 @@
gesturefy gesturefy
plasma-integration plasma-integration
libredirect libredirect
# bypass-paywalls-clean yomitan
]; ];
search.engines = { search.engines = {
@ -48,7 +48,7 @@
]; ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"]; definedAliases = [ "@np" ];
}; };
"Home Manager" = { "Home Manager" = {
@ -65,7 +65,7 @@
]; ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@hm"]; definedAliases = [ "@hm" ];
}; };
"Searx" = { "Searx" = {
@ -82,7 +82,7 @@
]; ];
iconUpdateURL = "https://paulgo.io/favicon.ico"; iconUpdateURL = "https://paulgo.io/favicon.ico";
definedAliases = ["@sx"]; definedAliases = [ "@sx" ];
}; };
"Amazon" = { "Amazon" = {
@ -99,7 +99,7 @@
]; ];
iconUpdateURL = "https://amazon.de/favicon.ico"; iconUpdateURL = "https://amazon.de/favicon.ico";
definedAliases = ["@a"]; definedAliases = [ "@a" ];
}; };
"YouTube" = { "YouTube" = {
@ -116,11 +116,13 @@
]; ];
iconUpdateURL = "https://piped.video/favicon.ico"; iconUpdateURL = "https://piped.video/favicon.ico";
definedAliases = ["yt"]; definedAliases = [ "yt" ];
}; };
}; };
search.force = true; search = {
search.default = "Searx"; force = true;
default = "DuckDuckGo";
};
settings = { settings = {
"media.hardwaremediakeys.enabled" = false; "media.hardwaremediakeys.enabled" = false;
@ -191,9 +193,9 @@
}; };
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {
"text/html" = ["firefox.desktop"]; "text/html" = [ "firefox.desktop" ];
"text/xml" = ["firefox.desktop"]; "text/xml" = [ "firefox.desktop" ];
"x-scheme-handler/http" = ["firefox.desktop"]; "x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = ["firefox.desktop"]; "x-scheme-handler/https" = [ "firefox.desktop" ];
}; };
} }