home/programs/browsers: add betterfox to firefox

This commit is contained in:
Anthony Rodriguez 2024-10-07 23:29:16 +02:00
parent 69ae2a1080
commit b5276c4523
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -1,6 +1,13 @@
{pkgs, ...}: { {pkgs, ...}: {
programs.chromium.enable = true; 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; enable = true;
profiles = { profiles = {
nezia = { nezia = {
@ -44,6 +51,13 @@
"Google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias "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; isDefault = true;
}; };
}; };