summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <[email protected]>2023-05-19 14:05:13 +0200
committerseth <[email protected]>2023-05-19 09:36:45 -0400
commite1e485d973fcb2f787e10deb60d85a6e8e7fa486 (patch)
tree793a369d61fed56e38afea608503570bb037fa0f
parenta8290a86bd99d218f49b0e962c05976ebfa5ba33 (diff)
chore: add .env support to direnv
Signed-off-by: Sefa Eyeoglu <[email protected]>
-rw-r--r--.env.template1
-rw-r--r--.envrc1
-rw-r--r--.gitignore3
3 files changed, 5 insertions, 0 deletions
diff --git a/.env.template b/.env.template
new file mode 100644
index 0000000..60492e1
--- /dev/null
+++ b/.env.template
@@ -0,0 +1 @@
+TOKEN=AAAAAAAAAAAAAAAAAAAAAAAAAA.AMOGUS.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
diff --git a/.envrc b/.envrc
index e31c306..1b6637e 100644
--- a/.envrc
+++ b/.envrc
@@ -2,3 +2,4 @@ if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi
use flake
+dotenv_if_exists
diff --git a/.gitignore b/.gitignore
index dc8daf1..5b6ba37 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,5 +18,8 @@ Cargo.lock
result
.pre-commit-config.yaml
+# Used to supply a token together with direnv
+.env
+
# mac stuff (you're welcome sake)
**/.DS_Store