iFreilicht / nix-templates

❄️ Nix flake templates for: πŸ¦€ Rust, πŸ¦– Deno, 🐍 Python and πŸ—’οΈ reveal.js among others

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

❄️ nix-templates πŸ“‹

forthebadgeforthebadge

Minimal development templates for Nix

Who is this for

  • Someone who wants to apply Nix's power for development environments.
  • Who's not very comfortable with Flakes (you still need to have a basic understanding)
  • Need something minimal that just worksβ„’

What templates are offered ?

  • Android template using kotlin πŸ“±
  • Angular development template πŸ…°οΈ
  • Deno runtime development template using deno2nix πŸ¦–
  • Rust development template using fenix πŸ¦€
  • Python development template using poetry2nix 🐍
  • Tauri development template 🦬
  • mdbook template for your documentation πŸ“š
  • Presentation development template using reveal.js πŸ—’οΈ
  • Tex development template using tectonic πŸ“œ
  • Svelte development template with tailwind.css
  • Simple trivial template using flake-utils πŸš€

So how do I use it ??

There are multiple ways to use the templates defined in here. To get started fast just use the following command:

# The name corresponds to the different templates provided:
# [deno, rust, python, tauri, jupyter-py, mdbook, slides, tex, trivial]
nix flake init -t github:MordragT/nix-templates#<name>

If you are using these templates more frequently you should probably add them to the nix registry to shorten the command above. This can be achieved by either adding them via the following command:

nix registry add templates github:MordragT/nix-templates

Or if you are using NixOS by declaratively adding the flake to youre system configuration, as shown here

After that you can run the shorter command:

nix flake init -t templates#<name>

FAQ

... Waiting for questions ... (raise an issue in case of doubts)

Support

Consider starring the repo ⭐❄️

About

❄️ Nix flake templates for: πŸ¦€ Rust, πŸ¦– Deno, 🐍 Python and πŸ—’οΈ reveal.js among others

License:MIT License


Languages

Language:Nix 52.1%Language:Svelte 14.6%Language:Kotlin 10.6%Language:C 5.6%Language:Typst 3.9%Language:CSS 3.9%Language:JavaScript 3.5%Language:HTML 2.6%Language:Just 1.3%Language:Python 0.9%Language:TypeScript 0.5%Language:Rust 0.2%Language:TeX 0.2%