From 17af2afb46ff6a8663a8dab1b872f189e9b7fa66 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Mon, 24 Nov 2025 02:46:53 -0500 Subject: [PATCH 1/5] restructure everything --- README.md | 46 +++++++++++++++++++ flake.nix | 41 +++++++++-------- python/nixpkgs/flake.lock | 43 ----------------- python/nixpkgs/package.nix | 13 ------ .../{nixpkgs => pyproject/nixpkgs/cli}/.envrc | 0 .../nixpkgs/cli}/flake.nix | 0 python/pyproject/nixpkgs/cli/package.nix | 20 ++++++++ .../nixpkgs/cli}/pyproject.toml | 0 .../nixpkgs/cli}/shell.nix | 0 .../nixpkgs/cli}/src/hello/__init__.py | 0 .../nixpkgs/cli}/src/hello/main.py | 0 11 files changed, 87 insertions(+), 76 deletions(-) create mode 100644 README.md delete mode 100644 python/nixpkgs/flake.lock delete mode 100644 python/nixpkgs/package.nix rename python/{nixpkgs => pyproject/nixpkgs/cli}/.envrc (100%) rename python/{nixpkgs => pyproject/nixpkgs/cli}/flake.nix (100%) create mode 100644 python/pyproject/nixpkgs/cli/package.nix rename python/{nixpkgs => pyproject/nixpkgs/cli}/pyproject.toml (100%) rename python/{nixpkgs => pyproject/nixpkgs/cli}/shell.nix (100%) rename python/{nixpkgs => pyproject/nixpkgs/cli}/src/hello/__init__.py (100%) rename python/{nixpkgs => pyproject/nixpkgs/cli}/src/hello/main.py (100%) diff --git a/README.md b/README.md new file mode 100644 index 0000000..4fba2d5 --- /dev/null +++ b/README.md @@ -0,0 +1,46 @@ +# Toki's Nix Flake Template Repository + +This is my personal collection of Nix flake templates for various programming +languages and build systems. + +## Motivation + +There already exists an [official repository of flake +templates](https://github.com/NixOS/templates), so why make my own? + +I have a few different reasons: + +- **Comprehensiveness:** The official template repository is rather small and + doesn't have most of the templates I would actually want to use. +- **Consistency:** The templates in the official repository are contributed by + community members, and there's very little stylistic or structural consistency + between them. +- **Preference:** The structure of a flake can be very opinionated, and most of + the official flake templates are rather poorly constructed by my standards, + often not bothering to follow established best practices. + +## Usage + +Flake templates are used with the `nix flake init` command: + +```sh +nix flake init -t git+https://git.tokinanpa.dev/toki/templates#