Skip to content

abayomi185/nix-dev-templates

Repository files navigation

Nix Dev Templates using Flakes

Inspired by the-nix-way/dev-templates

built with nix

To initialize (where ${ENV} is listed in the table below):

nix flake init --template github:the-nix-way/dev-templates#${ENV}

Here's an example (for the rust template):

# Initialize in the current project
nix flake init --template github:abayomi185/nix-dev-templates#rust

# Create a new project
nix flake new --template github:abayomi185/nix-dev-templates#rust ${NEW_PROJECT_DIRECTORY}

You can also use these flakes directly, one off using:

nix develop github:abayomi185/nix-dev-templates#rust

Or perpetually by putting into your .envrc, the following (see: Determinate systems - Nix Direnv):

use flake "github:abayomi185/nix-dev-templates?dir=rust"

How to use the templates

Once your preferred template has been initialized, you can use the provided shell in two ways:

  1. If you have [nix-direnv][nix-direnv] installed, you can initialize the environment by running direnv allow.
  2. If you don't have nix-direnv installed, you can run nix develop to open up the Nix-defined shell.

Available templates

Language/framework/tool Template
[AWS-SAM] aws-sam
[Bun] bun
[Expo] expo
[Deno] deno
[Go] go
[Kubernetes] yaml
[Nix] nix
[node] node
[Python] python
[Rust] rust
[Rustup] rustup
[Rust ESP32] rust_esp32
[Zig] zig

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published