Refactor the whole configuration #1
1 changed files with 5 additions and 4 deletions
|
@ -1,10 +1,11 @@
|
||||||
let
|
let
|
||||||
mkPreferences = prefs: builtins.concatStringsSep
|
mkPrefs = prefs: builtins.concatStringsSep
|
||||||
"\n"
|
"\n"
|
||||||
|
(builtins.attrValues
|
||||||
(builtins.mapAttrs
|
(builtins.mapAttrs
|
||||||
(name: value: "user_pref(\"${name}\", \"${value}\");"));
|
(n: v: ''user_pref("${n}", "${v}");'') prefs));
|
||||||
in
|
in
|
||||||
mkPreferences {
|
mkPrefs {
|
||||||
prefs = {
|
prefs = {
|
||||||
"browser.urlbar.suggest.topsites" = false;
|
"browser.urlbar.suggest.topsites" = false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue