Refactor the whole configuration #1
1 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
{
|
let
|
||||||
|
mkPreferences = prefs: builtins.concatStringsSep
|
||||||
|
"\n"
|
||||||
|
(map
|
||||||
|
(p: ''user_pref("${p}", ${builtins.toJSON prefs.${p}});'')
|
||||||
|
(builtins.attrNames prefs));
|
||||||
|
in
|
||||||
|
mkPreferences {
|
||||||
|
prefs = {
|
||||||
"browser.urlbar.suggest.topsites" = false;
|
"browser.urlbar.suggest.topsites" = false;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue