From ad69df8518c49490acc024b7240a82f152b93e97 Mon Sep 17 00:00:00 2001 From: Daniel Lindsley Date: Mon, 1 Dec 2025 11:09:19 -0600 Subject: [PATCH] chore: Moved to `.envrc.example` file. --- .envrc.example | 9 +++++++++ .gitignore | 1 + README.md | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 .envrc.example diff --git a/.envrc.example b/.envrc.example new file mode 100644 index 00000000..793445f7 --- /dev/null +++ b/.envrc.example @@ -0,0 +1,9 @@ +#!/bin/bash + +if type nix >/dev/null 2>&1; then + use flake +else + echo "nix is not available, please install Nix or run the environment manually." +fi + +# vim: syntax=bash diff --git a/.gitignore b/.gitignore index 07ca6c98..bdfb719a 100644 --- a/.gitignore +++ b/.gitignore @@ -384,6 +384,7 @@ dist *.tfvars.json .direnv +.envrc # nix-build output result diff --git a/README.md b/README.md index 9c539ba7..60903bfe 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ nix-shell -p "(with import {}; callPackage (builtins.fetchTarball http ## Creating a new project using this repo +First, copy (& optionally customize) the `.envrc.example` file to `.envrc`! + Run `scaf myproject`, answer all the questions, and you'll have your new project!