Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Project Templates

flk init writes a profile from a template. flk profile add uses the same templates.

flk init --template rust     # rust, python, node, go, generic
flk profile add backend --template go

Detection

Without --template, flk init looks for:

FileTemplate
Cargo.tomlrust
package.jsonnode
pyproject.toml or requirements.txtpython
go.modgo
none of thesegeneric

Templates

TemplatePackages
ruststable Rust from rust-overlay, rust-analyzer, pkg-config, openssl, cargo-watch, cargo-edit, cargo-dist
pythonPython 3.14, pip, poetry, uv, ruff, mypy, pyright
nodeNode.js 24, pnpm, yarn, eslint, prettier
gogo, gopls, gotools, go-tools, delve, golangci-lint
generic / basenone

base and generic are the same empty template. flk profile add uses base when no template is given.

Source files

Templates live in templates/ and are embedded in the binary at compile time:

  • templates/profiles/*.nix: profile templates
  • templates/slim/: flake.nix and .flk/config.nix for the default layout
  • templates/flake.nix, templates/default.nix, templates/overlays.nix, templates/profiles/default.nix: the legacy layout (flk init --legacy)
  • templates/pins.nix: empty version pins

See also flk init, flk profile, Architecture.