Skip to main content

@nickgerace/nix-flake

v2026.03.09.1

Manage Nix flakes: fetch metadata, show outputs, check, update, and build

Install

$ swamp extension pull @nickgerace/nix-flake

@nickgerace/nix-flakev2026.03.09.1nix_flake.ts

Global Arguments

ArgumentTypeDescription
flakeRefstringFlake reference: a local path (e.g. '/path/to/repo' or '.') or a remote ref (e.g. 'github:owner/repo')
metadataFetch flake metadata (inputs, revision, last modified) via `nix flake metadata --json`
showShow flake output tree via `nix flake show --json`
checkRun `nix flake check` to validate the flake
ArgumentTypeDescription
buildAllbooleanPass --build to also build all derivations (slower)
updateUpdate flake.lock via `nix flake update`
ArgumentTypeDescription
inputsarraySpecific input names to update (empty = update all)
buildBuild a flake output attribute via `nix build`
ArgumentTypeDescription
outputAttrstringOutput attribute to build, e.g. 'packages.x86_64-linux.default' or just 'default'
noLinkbooleanPass --no-link to avoid creating a result symlink
printBuildLogsbooleanPass -L to print build logs

Resources

metadata(infinite)— Flake metadata from `nix flake metadata`
outputs(infinite)— Flake output tree from `nix flake show`
build(7d)— Result of `nix build` for a specific output attribute
check(7d)— Result of `nix flake check`
update(7d)— Result of `nix flake update`