Skip to content

A collection of Nix Flake Templates for: Python, CMake, Poetry, uv, Rust, Fenix, Naersk, Vim, Zig, Bash etc.

Notifications You must be signed in to change notification settings

nulladmin1/nix-flake-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❄️ Nix Flake Templates

built with nix forthebadge

A collection of Nix Flake Templates

demo

Contributors, go to CONTRIBUTING.md

Table of Contents

Usage

Use getflake to initialize flake (recommended)

nix run github:nulladmin1/getflake

Or initialize using

nix flake init --template "github:nulladmin1/nix-flake-templates#${TYPE_KEYWORD}"

Where ${TYPE_KEYWORD} is the supported type keyword of template:

Type Keyword Type Subdirectory Documentation
bash, sh Bash using Nixpkgs Builders bash README
bevy Bevy using Fenix and Crane bevy README
cpp, cpp-cmake C++ using CMake cpp-cmake README
default Development default README
flutter, flutter-nix Flutter using Nixpkgs Builders flutter-nix README
go, go-gomod2nix Go using gomod2nix go-gomod2nix README
go-nix Go with Nixpkgs Builders go-nix README
nixpkgs Nixpkgs Development nixpkgs README
python, python-nix Python using Nixpkgs builders python-nix README
poetry, python-poetry Python using Poetry python-poetry README
pyproject, python-pyproject-nix Python using Pyproject-nix python-pyproject-nix README
python-uv, uv Python using uv2nix python-uv README
crane, rust, rust-fenix-crane Rust using Fenix and Crane rust-fenix-crane README
rust-fenix-naersk Rust using Fenix and Naersk rust-fenix-naersk README
rust-nix Rust using Nixpkgs Builders rust-nix README
vim, vimPlugins vimPlugins vimPlugins README
zig Zig using Nixpkgs Builders zig README

Examples

getflake (using rust-fenix-naersk) - A simple to program to automatically instantiate my Nix-Flake-Templates

eightQueens (using cpp-cmake) - A rendition of the famous Eight Queens Puzzle in C++

mp2ExtraCredit (using cpp-cmake) - A solution of a plague simulation I had to do for Computer Science II, in C++

josephus-rs (using rust-fenix-naersk) - An implementation of the Josephus problem in Rust

sha256_python_with_tests - A simple Python program with testcases to encode a user-inputted string in SHA256