Refactor the whole configuration #1
2 changed files with 10 additions and 1 deletions
3
modules/nixos/multimedia/web/firefox/preferences.nix
Normal file
3
modules/nixos/multimedia/web/firefox/preferences.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"browser.urlbar.suggest.topsites" = false;
|
||||||
|
}
|
|
@ -2,11 +2,17 @@
|
||||||
# https://github.com/ryan4yin/nix-config/blob/7deed26cc5a3af2072b8c89a688f265607babc80/hardening/nixpaks/firefox.nix
|
# 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
|
# 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: {
|
{ cfgPath, ... }: final: prev: {
|
||||||
firefox-esr = let
|
firefox-esr = let
|
||||||
intermediary-firefox-esr = prev.firefox-esr.override {
|
intermediary-firefox-esr = prev.firefox-esr.override {
|
||||||
extraPolicies = import "${cfgPath}/modules/nixos/multimedia/web/firefox/policies.nix";
|
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 {
|
sandboxed-firefox-esr = prev.mkNixPak {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue