fixing the function

This commit is contained in:
caem 2025-01-25 13:17:44 +01:00
parent 36107292fe
commit eeffb012dd
Signed by: caem
GPG key ID: 69A830D03203405F

View file

@ -1,9 +1,8 @@
let
mkPreferences = prefs: builtins.concatStringsSep
"\n"
(map
(p: ''user_pref("${p}", ${builtins.toJSON prefs.${p}});'')
(builtins.attrNames prefs));
(builtins.mapAttrs
(name: value: "user_pref(\"${name}\", \"${value}\");"));
in
mkPreferences {
prefs = {