Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.01 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.01 KB

flake-parts templates

A registry of various flake-parts templates

Warning

This repo is experimental. Do not promulgate until the GA milestone is complete. The author (Srid) who originally proposed this is now exploring templates in om init.

Usage

There are two ways to use these templates, the first of which should be preferred:

flakreate

To initialize a template using flakreate:

nix run github:juspay/flakreate ~/myproject
cd ~/myproject

This is an interactive app that allows you to choose a template and (optionally) fill in the necessary parameters for the generated project.

nix flake init

To initialize a template using just the nix command, run:

mkdir myproject && cd myproject
TEMPLATE=$(nix flake show github:flake-parts/templates --json | jq -r '.templates | keys[]' | fzf)
nix flake init -t github:flake-parts/templates#${TEMPLATE}