Skip to content

lukebfox/nix-flake-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Start packaging projects with flakes without the fuss

This is a small collection of flake templates for use when developing software intended to be built or distributed with Nix flakes.

Usage

Initialising a Python-based application managed with Poetry and Nix is as simple as

nix flake init -t "github:lukebfox/nix-flake-templates#python-poetry2nix"
git init && git add .

which will give you

myproject
├─flake.nix
├─flake.lock
├─pyproject.toml
├─poetry.lock
├─.gitignore
├─.git
└─.envrc

Templates

$ nix flake show "github:lukebfox/nix-flake-templates"

github:lukebfox/nix-configs/<commit-hash>
└───templates
    ├───elixir-environment: template: Elixir development environment
    ├───infrastructure: template: An infrastructure repository
    ├───python-poetry2nix: template: A Python project built with poetry2nix
    ├───rust-cargo2nix: template: Cargo crate built with cargo2nix
    ├───rust-crate2nix: template: Cargo crate built with crate2nix
    └───rust-environment: template: Rust nightly development environment

Contributing

If you want more like this feel free to open up an issue or a PR. Let's spread the flakes knowledge!


More like this

nixos/templates
serokell/templates