From b5276c4523b0884c3078b7f7157198fc1f6d1cb0 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Mon, 7 Oct 2024 23:29:16 +0200 Subject: [PATCH] home/programs/browsers: add betterfox to firefox --- home/programs/browsers.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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; }; };