Redefine search engines
This commit is contained in:
parent
f5831262b3
commit
79310cc53a
|
@ -41,12 +41,18 @@ in {
|
|||
];
|
||||
commonSearch = {
|
||||
force = true;
|
||||
default = "Google";
|
||||
default = "Ecosia";
|
||||
order = [
|
||||
"Ecosia"
|
||||
"NixPKGs"
|
||||
"MyNixOS"
|
||||
"YouTube"
|
||||
];
|
||||
engines = {
|
||||
"Google" = {
|
||||
"Ecosia" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.google.com/search";
|
||||
template = "https://www.ecosia.org/search";
|
||||
params = [
|
||||
{
|
||||
name = "q";
|
||||
|
@ -55,7 +61,7 @@ in {
|
|||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "@g" ];
|
||||
definedAliases = [ "@e" ];
|
||||
};
|
||||
"NixPKGs" = {
|
||||
urls = [
|
||||
|
@ -76,6 +82,34 @@ in {
|
|||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
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 = {
|
||||
|
@ -91,6 +125,8 @@ in {
|
|||
"browser.toolbars.bookmarks.visibility" = "never";
|
||||
"browser.contentblocking.category" = "strict";
|
||||
"browser.helperApps.deleteTempFileOnExit" = true;
|
||||
"browser.newtabpage.enabled" = false;
|
||||
"browser.search.separatePrivateDefault" = false;
|
||||
|
||||
"extensions.pocket.enabled" = false;
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
|
@ -98,19 +134,34 @@ in {
|
|||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"toolkit.tabbox.switchByScrolling" = true;
|
||||
|
||||
"privacy.resistFingerprinting" = true;
|
||||
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
|
||||
"privacy.fingerprintingProtection" = true;
|
||||
"privacy.donottrackheader.enabled" = true;
|
||||
"privacy.userContext.newTabContainerOnLeftClick.enabled" = true;
|
||||
"privacy.globalprivacycontrol.enabled" = true;
|
||||
"privacy.globalprivacycontrol.functionality.enabled" = true;
|
||||
"privacy.clearOnShutdown.history" = true;
|
||||
"privacy.clearOnShutdown.cookies" = false;
|
||||
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
|
||||
"privacy.clearOnShutdown_v2.historyFormDataAndDownloads" = true;
|
||||
|
||||
"places.history.enabled" = false;
|
||||
|
||||
"urlclassifier.trackingSkipURLs" = "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.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;
|
||||
|
||||
"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;
|
||||
"device.sensors.motion.enabled" = false;
|
||||
"gnomeTheme.hideSingleTab" = true;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
EDITOR = "nvim";
|
||||
LIBVIRT_DEFAULT_URI = "qemu:///system";
|
||||
HISTCONTROL = "ignoreboth";
|
||||
NIXPKGS_ALLOW_UNFREE = "1";
|
||||
NIXPKGS_ALLOW_UNFREE = 1;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
"${primeMod}+${secMod}+r" = ''exec rofiscripts --resolutions'';
|
||||
|
||||
# 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}+x" = ''exec rofiscripts --power'';
|
||||
"${primeMod}+b" = ''exec pkill -USR1 waybar'';
|
||||
|
@ -77,9 +77,9 @@
|
|||
"${primeMod}+Delete" = ''exec foot ranger /etc/nixos | ${sendNotif} "Nix Config"'';
|
||||
|
||||
# Mod + shift + key
|
||||
"${primeMod}+Shift+s" = ''exec rofi -show run -p Command'';
|
||||
"${primeMod}+Shift+t" = ''exec pcmanfm-qt'';
|
||||
"${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+Return" = ''exec foot ranger'';
|
||||
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
files = [
|
||||
".zsh_history"
|
||||
".local/share/clipman.json"
|
||||
|
||||
".local/share/applications" # Create this so nothing gets generated inside of it
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -25,11 +25,14 @@
|
|||
else [];
|
||||
|
||||
# Configure Nvidia settings if Nvidia is enabled
|
||||
hardware.nvidia = lib.mkIf config.system.video.nvidia.enable {
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = false;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
open = false;
|
||||
hardware = {
|
||||
nvidia = lib.mkIf config.system.video.nvidia.enable {
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = false;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
open = false;
|
||||
};
|
||||
opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
enable = true;
|
||||
extraRules = [
|
||||
{ # Give wheel root access
|
||||
groups = ["wheel"];
|
||||
groups = [ "wheel" ];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue