From 13a6cdcebc90b1f2796aba85962d8a0608d8a678 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Sat, 20 Jul 2024 12:25:46 -0700 Subject: [PATCH] Add default template --- README.md | 6 +++--- flake.nix | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd48d37..1f23cdd 100644 --- a/README.md +++ b/README.md @@ -5,17 +5,17 @@ To initialize (where `${ENV}` is listed in the table below): ```shell -nix flake init --template github:the-nix-way/dev-templates#${ENV} +nix flake init --template "https://flakehub.com/f/the-nix-way/dev-templates/*#${ENV}" ``` Here's an example (for the [`rust`](./rust) template): ```shell # Initialize in the current project -nix flake init --template github:the-nix-way/dev-templates#rust +nix flake init --template "https://flakehub.com/f/the-nix-way/dev-templates/*#rust" # Create a new project -nix flake new --template github:the-nix-way/dev-templates#rust ${NEW_PROJECT_DIRECTORY} +nix flake new --template "https://flakehub.com/f/the-nix-way/dev-templates/*#rust" ${NEW_PROJECT_DIRECTORY} ``` ## How to use the templates diff --git a/flake.nix b/flake.nix index 57e15e8..f9663a9 100644 --- a/flake.nix +++ b/flake.nix @@ -96,6 +96,8 @@ { templates = rec { + default = empty; + bun = { path = ./bun; description = "Bun development environment";