diff --git a/modules/home/programs/gui/librewolf/default.nix b/modules/home/programs/gui/librewolf/default.nix index 283d576..bb19e9f 100644 --- a/modules/home/programs/gui/librewolf/default.nix +++ b/modules/home/programs/gui/librewolf/default.nix @@ -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; diff --git a/modules/home/users/jimbo/default.nix b/modules/home/users/jimbo/default.nix index 69b73a7..6af3691 100644 --- a/modules/home/users/jimbo/default.nix +++ b/modules/home/users/jimbo/default.nix @@ -7,7 +7,7 @@ EDITOR = "nvim"; LIBVIRT_DEFAULT_URI = "qemu:///system"; HISTCONTROL = "ignoreboth"; - NIXPKGS_ALLOW_UNFREE = "1"; + NIXPKGS_ALLOW_UNFREE = 1; }; }; } diff --git a/modules/home/wms/sway/hotkeys/default.nix b/modules/home/wms/sway/hotkeys/default.nix index 8949749..8096e9e 100644 --- a/modules/home/wms/sway/hotkeys/default.nix +++ b/modules/home/wms/sway/hotkeys/default.nix @@ -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''; diff --git a/modules/system/devices/disks/impermanence/jimbo/default.nix b/modules/system/devices/disks/impermanence/jimbo/default.nix index a399812..7125bed 100644 --- a/modules/system/devices/disks/impermanence/jimbo/default.nix +++ b/modules/system/devices/disks/impermanence/jimbo/default.nix @@ -33,6 +33,8 @@ files = [ ".zsh_history" ".local/share/clipman.json" + + ".local/share/applications" # Create this so nothing gets generated inside of it ]; }; }; diff --git a/modules/system/devices/video/nvidia/default.nix b/modules/system/devices/video/nvidia/default.nix index 45fec2a..3d6d4f2 100644 --- a/modules/system/devices/video/nvidia/default.nix +++ b/modules/system/devices/video/nvidia/default.nix @@ -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 ]; }; }; } diff --git a/modules/system/programs/security/doas/default.nix b/modules/system/programs/security/doas/default.nix index f182327..b40d8ea 100644 --- a/modules/system/programs/security/doas/default.nix +++ b/modules/system/programs/security/doas/default.nix @@ -6,7 +6,7 @@ enable = true; extraRules = [ { # Give wheel root access - groups = ["wheel"]; + groups = [ "wheel" ]; keepEnv = true; persist = true; }