This repository contains several ready-to-go project templates for several languages. All of the templates are exposes via a nix flake.
Currently supported languages:
- C/C++
- Build system is CMake
- Formatter - clang-format
- Static analysis - clang-tidy
- Ruby
- Rust
- Nix
To initialize a directory with a template of your choosing run:
cd mycoolproject
nix flake init -t "github:xokdvium/project-templates#cpp"
Each repository contains a justfile
with basic functionality to run
linters and formatters via lint-nix.
Basic usage:
just format # to format the repo
just check # run all checkers and linters
just lint # format & check
just run-workflows # run github actions via act
Short aliases for the same commands:
just f # format
just l # lint
just r # run-workflows