Skip to main content

Nix Flake

@nickgerace/nix-flakev2026.03.09.1· 2mo agoMODELS
01README

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

02Models1
@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')
fn metadata()
Fetch flake metadata (inputs, revision, last modified) via `nix flake metadata --json`
fn show()
Show flake output tree via `nix flake show --json`
fn check(buildAll: boolean)
Run `nix flake check` to validate the flake
ArgumentTypeDescription
buildAllbooleanPass --build to also build all derivations (slower)
fn update(inputs: array)
Update flake.lock via `nix flake update`
ArgumentTypeDescription
inputsarraySpecific input names to update (empty = update all)
fn build(outputAttr: string, noLink: boolean, printBuildLogs: boolean)
Build 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`
03Stats
Downloads
3
Archive size
3.5 KB

Not yet scored.

A score will be generated the next time this extension is published. The owner can also trigger scoring manually.

04Platforms
05Labels