options.json: Export as an object rather than a list

This makes it easier to look up options by name.

+3 -1
+3 -1
nixos/doc/manual/default.nix
··· 71 dst=$out/share/doc/nixos 72 mkdir -p $dst 73 74 - cp ${builtins.toFile "options.json" (builtins.unsafeDiscardStringContext (builtins.toJSON optionsList'))} $dst/options.json 75 76 mkdir -p $out/nix-support 77 echo "file json $dst/options.json" >> $out/nix-support/hydra-build-products
··· 71 dst=$out/share/doc/nixos 72 mkdir -p $dst 73 74 + cp ${builtins.toFile "options.json" (builtins.unsafeDiscardStringContext (builtins.toJSON 75 + (listToAttrs (map (o: { name = o.name; value = removeAttrs o ["name"]; }) optionsList')))) 76 + } $dst/options.json 77 78 mkdir -p $out/nix-support 79 echo "file json $dst/options.json" >> $out/nix-support/hydra-build-products