@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
| Argument | Type | Description |
|---|---|---|
| flakeRef | string | Flake 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
| Argument | Type | Description |
|---|---|---|
| buildAll | boolean | Pass --build to also build all derivations (slower) |
updateUpdate flake.lock via `nix flake update`
| Argument | Type | Description |
|---|---|---|
| inputs | array | Specific input names to update (empty = update all) |
buildBuild a flake output attribute via `nix build`
| Argument | Type | Description |
|---|---|---|
| outputAttr | string | Output attribute to build, e.g. 'packages.x86_64-linux.default' or just 'default' |
| noLink | boolean | Pass --no-link to avoid creating a result symlink |
| printBuildLogs | boolean | Pass -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`