diff --git a/home/programs/browsers.nix b/home/programs/browsers.nix index aa89d3d..0807089 100644 --- a/home/programs/browsers.nix +++ b/home/programs/browsers.nix @@ -1,6 +1,13 @@ {pkgs, ...}: { programs.chromium.enable = true; - programs.firefox = { + programs.firefox = let + betterfox = pkgs.fetchFromGitHub { + owner = "yokoffing"; + repo = "betterfox"; + rev = "e026ed7d3a763c5d3f96c2680d7bc3340831af4f"; + hash = "sha256-hpkEO5BhMVtINQG8HN4xqfas/R6q5pYPZiFK8bilIDs="; + }; + in { enable = true; profiles = { nezia = { @@ -44,6 +51,13 @@ "Google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias }; }; + # stolen from https://github.com/oddlama/nix-config/blob/main/users/myuser/graphical/firefox.nix#L53-L57 + extraConfig = builtins.concatStringsSep "\n" [ + (builtins.readFile "${betterfox}/Securefox.js") + (builtins.readFile "${betterfox}/Fastfox.js") + (builtins.readFile "${betterfox}/Peskyfox.js") + (builtins.readFile "${betterfox}/Smoothfox.js") + ]; isDefault = true; }; };