home/programs/browsers: add betterfox to firefox
This commit is contained in:
parent
69ae2a1080
commit
b5276c4523
1 changed files with 15 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue