[go: up one dir, main page]

Skip to content

flake-parts/templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

A registry of various `flake-parts` templates

Resources

License

Stars

Watchers

Forks

Languages