Refactor the whole configuration #1
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue