This commit is contained in:
caem 2025-01-25 14:04:30 +01:00
parent cd06827a1c
commit 1d73fdb5da
Signed by: caem
GPG key ID: 69A830D03203405F
2 changed files with 4 additions and 3 deletions

View file

@ -5,7 +5,7 @@ let
else if (builtins.isInt value) || (builtins.isNull value) then
builtins.toString value
else if builtins.isString value then
value
''"${value}"''
else
builtins.throw
"Pref expected one of (Bool, String, Int, Null) got instead ${builtins.typeOf value}";
@ -14,7 +14,7 @@ let
"\n"
(builtins.attrValues
(builtins.mapAttrs
(n: v: ''user_pref("${n}", "${(prefToString v)}");'') prefs));
(n: v: ''user_pref("${n}", ${prefToString v});'') prefs));
in
mkPrefs {
"browser.urlbar.suggest.topsites" = false;

View file

@ -15,7 +15,8 @@
prefsFile = "${cfgPath}/modules/nixos/multimedia/web/firefox/preferences.nix";
in prev.firefox-esr.override {
extraPolicies = import policiesFile;
extraPrefs = builtins.trace (import prefsFile) (import prefsFile);
# extraPrefs = builtins.trace (import prefsFile) (import prefsFile);
extraPrefs = "";
};
sandboxed-firefox-esr = prev.mkNixPak {