snippetbashTip
nix flake show — Show outputs provided by a flake. More information: <https://nix.dev/manual/nix/stable/command-ref/n
Viewed 0 times
commandshowprovidedcliflakenix flake showmoreoutputs
Problem
How to use the
nix flake show command: Show outputs provided by a flake. More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake-show.html>.Solution
nix flake show — Show outputs provided by a flake. More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake-show.html>.Show all the outputs of the flake in the current directory:
nix flake showShow all the outputs of a flake on GitHub and print the output as a json on a single line:
nix flake show {{github:owner/repo}} --json --no-prettyShow all the
legacyPackages outputs of a flake on GitHub and print the output as a multi-line indented json:nix flake show {{github:owner/repo}} --json --pretty --legacyList all available flake templates for
nix flake init:nix flake show templatesCode Snippets
Show all the outputs of the flake in the current directory
nix flake showShow all the outputs of a flake on GitHub and print the output as a json on a single line
nix flake show {{github:owner/repo}} --json --no-prettyShow all the `legacyPackages` outputs of a flake on GitHub and print the output as a multi-line indented json
nix flake show {{github:owner/repo}} --json --pretty --legacyList all available flake templates for `nix flake init`
nix flake show templatesContext
tldr-pages: common/nix flake show
Revisions (0)
No revisions yet.