Redefine search engines

This commit is contained in:
Jimbo 2024-11-18 17:14:02 -05:00
parent f5831262b3
commit 79310cc53a
6 changed files with 71 additions and 15 deletions

View file

@ -41,12 +41,18 @@ in {
]; ];
commonSearch = { commonSearch = {
force = true; force = true;
default = "Google"; default = "Ecosia";
order = [
"Ecosia"
"NixPKGs"
"MyNixOS"
"YouTube"
];
engines = { engines = {
"Google" = { "Ecosia" = {
urls = [ urls = [
{ {
template = "https://www.google.com/search"; template = "https://www.ecosia.org/search";
params = [ params = [
{ {
name = "q"; name = "q";
@ -55,7 +61,7 @@ in {
]; ];
} }
]; ];
definedAliases = [ "@g" ]; definedAliases = [ "@e" ];
}; };
"NixPKGs" = { "NixPKGs" = {
urls = [ urls = [
@ -76,6 +82,34 @@ in {
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 = [ "@pkgs" ]; definedAliases = [ "@pkgs" ];
}; };
"MyNixOS" = {
urls = [
{
template = "https://mynixos.com/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
definedAliases = [ "@my" ];
};
"YouTube" = {
urls = [
{
template = "https://www.youtube.com/results";
params = [
{
name = "search_query";
value = "{searchTerms}";
}
];
}
];
definedAliases = [ "@y" ];
};
}; };
}; };
commonSettings = { commonSettings = {
@ -91,6 +125,8 @@ in {
"browser.toolbars.bookmarks.visibility" = "never"; "browser.toolbars.bookmarks.visibility" = "never";
"browser.contentblocking.category" = "strict"; "browser.contentblocking.category" = "strict";
"browser.helperApps.deleteTempFileOnExit" = true; "browser.helperApps.deleteTempFileOnExit" = true;
"browser.newtabpage.enabled" = false;
"browser.search.separatePrivateDefault" = false;
"extensions.pocket.enabled" = false; "extensions.pocket.enabled" = false;
"extensions.autoDisableScopes" = 0; "extensions.autoDisableScopes" = 0;
@ -98,19 +134,34 @@ in {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"toolkit.tabbox.switchByScrolling" = true; "toolkit.tabbox.switchByScrolling" = true;
"privacy.resistFingerprinting" = true;
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
"privacy.fingerprintingProtection" = true;
"privacy.donottrackheader.enabled" = true; "privacy.donottrackheader.enabled" = true;
"privacy.userContext.newTabContainerOnLeftClick.enabled" = true;
"privacy.globalprivacycontrol.enabled" = true; "privacy.globalprivacycontrol.enabled" = true;
"privacy.globalprivacycontrol.functionality.enabled" = true; "privacy.globalprivacycontrol.functionality.enabled" = true;
"privacy.clearOnShutdown.history" = true;
"privacy.clearOnShutdown.cookies" = false; "privacy.clearOnShutdown.cookies" = false;
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false; "privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
"privacy.clearOnShutdown_v2.historyFormDataAndDownloads" = true; "privacy.clearOnShutdown_v2.historyFormDataAndDownloads" = true;
"places.history.enabled" = false;
"urlclassifier.trackingSkipURLs" = "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com"; "urlclassifier.trackingSkipURLs" = "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com";
"urlclassifier.features.socialtracking.skipURLs" = "*.instagram.com, *.twitter.com, *.twimg.com"; "urlclassifier.features.socialtracking.skipURLs" = "*.instagram.com, *.twitter.com, *.twimg.com";
"media.hardware-video-decoding.force-enabled" = true; "network.trr.mode" = 3;
"network.trr.uri" = "https://doh.libredns.gr/noads";
"network.http.referer.XOriginPolicy" = true;
"network.cookie.sameSite.noneRequiresSecure" = true; "network.cookie.sameSite.noneRequiresSecure" = true;
"media.ffmpeg.vaapi.enabled" = true;
"media.rdd-ffmpeg.enabled" = true;
"media.hardware-video-decoding.force-enabled" = true;
"gfx.webrender.all" = true;
"gfx.x11-egl.force-enabled" = true;
"svg.context-properties.content.enabled" = true; "svg.context-properties.content.enabled" = true;
"device.sensors.motion.enabled" = false; "device.sensors.motion.enabled" = false;
"gnomeTheme.hideSingleTab" = true; "gnomeTheme.hideSingleTab" = true;

View file

@ -7,7 +7,7 @@
EDITOR = "nvim"; EDITOR = "nvim";
LIBVIRT_DEFAULT_URI = "qemu:///system"; LIBVIRT_DEFAULT_URI = "qemu:///system";
HISTCONTROL = "ignoreboth"; HISTCONTROL = "ignoreboth";
NIXPKGS_ALLOW_UNFREE = "1"; NIXPKGS_ALLOW_UNFREE = 1;
}; };
}; };
} }

View file

@ -68,7 +68,7 @@
"${primeMod}+${secMod}+r" = ''exec rofiscripts --resolutions''; "${primeMod}+${secMod}+r" = ''exec rofiscripts --resolutions'';
# Mod + Key # Mod + Key
"${primeMod}+s" = ''exec rofi -show run -p Command''; "${primeMod}+s" = ''exec rofi -show drun -modi drun -drun-display-format {name} -show-icons -disable-history'';
"${primeMod}+c" = ''exec clipman pick -t rofi''; "${primeMod}+c" = ''exec clipman pick -t rofi'';
"${primeMod}+x" = ''exec rofiscripts --power''; "${primeMod}+x" = ''exec rofiscripts --power'';
"${primeMod}+b" = ''exec pkill -USR1 waybar''; "${primeMod}+b" = ''exec pkill -USR1 waybar'';
@ -77,9 +77,9 @@
"${primeMod}+Delete" = ''exec foot ranger /etc/nixos | ${sendNotif} "Nix Config"''; "${primeMod}+Delete" = ''exec foot ranger /etc/nixos | ${sendNotif} "Nix Config"'';
# Mod + shift + key # Mod + shift + key
"${primeMod}+Shift+s" = ''exec rofi -show run -p Command'';
"${primeMod}+Shift+t" = ''exec pcmanfm-qt''; "${primeMod}+Shift+t" = ''exec pcmanfm-qt'';
"${primeMod}+Shift+e" = ''exec BEMOJI_PICKER_CMD="rofi -dmenu -i -p Emoji" bemoji -n -P 0''; "${primeMod}+Shift+e" = ''exec BEMOJI_PICKER_CMD="rofi -dmenu -i -p Emoji" bemoji -n -P 0'';
"${primeMod}+Shift+s" = ''exec rofi -show drun -modi drun -drun-display-format {name} -show-icons -disable-history'';
"${primeMod}+Shift+b" = ''exec rofi-bluetooth''; "${primeMod}+Shift+b" = ''exec rofi-bluetooth'';
"${primeMod}+Shift+Return" = ''exec foot ranger''; "${primeMod}+Shift+Return" = ''exec foot ranger'';

View file

@ -33,6 +33,8 @@
files = [ files = [
".zsh_history" ".zsh_history"
".local/share/clipman.json" ".local/share/clipman.json"
".local/share/applications" # Create this so nothing gets generated inside of it
]; ];
}; };
}; };

View file

@ -25,11 +25,14 @@
else []; else [];
# Configure Nvidia settings if Nvidia is enabled # Configure Nvidia settings if Nvidia is enabled
hardware.nvidia = lib.mkIf config.system.video.nvidia.enable { hardware = {
modesetting.enable = true; nvidia = lib.mkIf config.system.video.nvidia.enable {
nvidiaSettings = false; modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.beta; nvidiaSettings = false;
open = false; package = config.boot.kernelPackages.nvidiaPackages.beta;
open = false;
};
opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
}; };
}; };
} }

View file

@ -6,7 +6,7 @@
enable = true; enable = true;
extraRules = [ extraRules = [
{ # Give wheel root access { # Give wheel root access
groups = ["wheel"]; groups = [ "wheel" ];
keepEnv = true; keepEnv = true;
persist = true; persist = true;
} }