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:
| File | Template |
|---|---|
Cargo.toml | rust |
package.json | node |
pyproject.toml or requirements.txt | python |
go.mod | go |
| none of these | generic |
Templates
| Template | Packages |
|---|---|
rust | stable Rust from rust-overlay, rust-analyzer, pkg-config, openssl, cargo-watch, cargo-edit, cargo-dist |
python | Python 3.14, pip, poetry, uv, ruff, mypy, pyright |
node | Node.js 24, pnpm, yarn, eslint, prettier |
go | go, gopls, gotools, go-tools, delve, golangci-lint |
generic / base | none |
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 templatestemplates/slim/:flake.nixand.flk/config.nixfor the default layouttemplates/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.