actually fix prefs this time

debugged this in repl instead of just throwing shit on the wall and
hoping it works like the last version of this function
This commit is contained in:
caem 2025-01-25 13:27:23 +01:00
parent eeffb012dd
commit 965f7c0a09
Signed by: caem
GPG key ID: 69A830D03203405F

View file

@ -1,10 +1,11 @@
let
mkPreferences = prefs: builtins.concatStringsSep
mkPrefs = prefs: builtins.concatStringsSep
"\n"
(builtins.mapAttrs
(name: value: "user_pref(\"${name}\", \"${value}\");"));
(builtins.attrValues
(builtins.mapAttrs
(n: v: ''user_pref("${n}", "${v}");'') prefs));
in
mkPreferences {
mkPrefs {
prefs = {
"browser.urlbar.suggest.topsites" = false;
};