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