flk export
Builds a container image of a profile, or writes the parsed config as JSON.
flk export --format docker
flk export --format podman
flk export --format json
flk export --format docker --profile backend
Options
-f, --format <FORMAT>:docker,podmanorjson(required)-p, --profile <PROFILE>: profile to export
Formats
Docker
Runs nix build .#docker-<profile> --impure --no-link (no GC root is left behind) and loads the image with docker load. Docker must be running.
Podman
Same, with .#podman-<profile> and podman load.
JSON
Writes inputs and all profiles to flake.json in the project root.