nixvital / flake-templates

A collection of flake templates as starting points for your awesome projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nixvital - Flake Templates

This repository contains a collection of Nix flake templates that you can use as starting points for your own projects. The templates are defined in the templates attribute set of the flake's outputs.

To use a template, you can use the nix flake init command and specify the template with the --template flag:

nix flake init --template "github:nixvital/flake-templates#torch-basics"

Alternatively, you can use the nix flake new command to create a new flake project in a new directory:

nix flake new --template "github:nixvital/flake-templates#torch-basics" my-project

The available templates in this repository are:

  • torch-basics: a template for a basic machine learning project with PyTorch
  • cpp-starter-kit: a template for a c++ development project skeleton with CMake
  • nixos-config: a template for creating a repo that hosts your NixOS configurations
  • js-webapp-basics: a template for creating javascript/typescript web application development environment
  • langchain-basics: a template for creating a langchain based LLM application
  • pybind11-starter-kit: a template that creates a skeleton for a pybind11 module, including development environment and nix packaging
  • maturin-basics: a template as the starting point for building a pyo3 (rust) based python package.

Customizing the Templates

Each template contains a flake.nix file that defines the structure of the flake. You can customize the flake by modifying the flake.nix file and the other files in the template.


This README.md file was generated with the help of ChatGPT, a language model trained by OpenAI.

About

A collection of flake templates as starting points for your awesome projects

License:MIT License


Languages

Language:Nix 61.5%Language:CMake 24.1%Language:Python 10.6%Language:C++ 3.8%