Add preferences to firefox overlay

This commit is contained in:
caem 2025-01-25 12:42:15 +01:00
parent aa8aa4b244
commit 6adcc91d50
Signed by: caem
GPG key ID: 69A830D03203405F
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,3 @@
{
"browser.urlbar.suggest.topsites" = false;
}

View file

@ -2,11 +2,17 @@
# https://github.com/ryan4yin/nix-config/blob/7deed26cc5a3af2072b8c89a688f265607babc80/hardening/nixpaks/firefox.nix
# https://github.com/schizofox/schizofox/blob/cdf69b2a445ff12680657a3bd44ce7c406bf2ae6/flake/modules/home-manager/default.nix
# NOTE: This overlay package is not compatible with the `programs.firefox` module
# for both NixOS and home-manager. If you want to modify the configuration of
# Firefox, you have to do it through modifying the overrides for the intermediary
# package below. This configuration already sets sane defaults so it shouldn't be needed
# but it is there in case you want it.
{ cfgPath, ... }: final: prev: {
firefox-esr = let
intermediary-firefox-esr = prev.firefox-esr.override {
extraPolicies = import "${cfgPath}/modules/nixos/multimedia/web/firefox/policies.nix";
# TODO: extaPrefs set browser.urlbar.suggest.topsites = false
extraPrefs = import "${cfgPath}/modules/nixos/multimedia/web/firefox/preferences.nix";
};
sandboxed-firefox-esr = prev.mkNixPak {