File schemas
Every JSON file omaflake writes names its JSON Schema (draft 2020-12) in $schema – what the file is and its version:
{
"$schema": "https://omaflake.dev/schema/image/v1.json",
"kind": "nixos",
"system": "aarch64-linux"
}
Each type counts its versions on its own. omaflake brings an older file up to date when it reads it, refuses a newer one, and never removes a published version from this site. Editors use the URL to check and complete the files.
| Type | File | Schema |
|---|---|---|
image | image.json in an image package | v5 (fields), v4 |
instance | instance.json in a VM package | v1, v2 – volumes (plan B187) |
settings | ~/.omaflake/config.json | v6 (credentials, locales, profiles, help switch) |
installed | <data>/recipes/.installed.json | v1 |
macos-vm | config.json of a macOS VM folder | v1 |
base | omaflake-base.json in a macOS base folder – the credential of its guest user, whether it knows omaflake’s own key | v3 (unchained), v2 (ownKey, version) |
manifest | manifest.json of an exported package | v1 |
catalog | catalog.json of a source | v4 (recipes v2, modules, key bindings, looks; plan B142), v5 (modules v2, key bindings v2; plan B147) |
recipe | recipe.toml of a recipe (TOML, checked as data) | v2 (data only, plan B142) |
module | module.toml of a module (TOML, checked as data; plan B142) | v1, v2 (modes, after, does; plan B147), v3 (files; plan B198), v4 (fields, setup; plan B206) |
keymap | keymap.toml of a key binding set (TOML, checked as data; plan B142) | v1, v2 (key lists, { key, after }; plan B147) |
look | look.toml of a look (TOML, checked as data; plan B140, B141) | v1 |
installed-parts | <data>/looks/, <data>/modules/, <data>/keymaps/ .installed.json – what was installed from sources | v1 |
networks | <data>/networks.json – the networks between VMs and their members (spec §11.12) | v1 |
setup | setup.json in a VM’s folder – the values of its modules’ fields and whether the VM has them (plan B206) | v1 |
volumes | <data>/volumes.json – the volumes the user made: folders VMs share (plan B187) | v1 |
tokens | $XDG_CONFIG_HOME/omaflake/tokens.json – tokens of private sources on Linux without a keyring | v1 |
The schemas live in the repository’s docs/schema/; how omaflake reads and migrates the files is in the design, §5.1.