aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-02-17 21:47:06 +0100
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-02-17 21:47:06 +0100
commit391361ec46751a0cc91020505c39211aa34aa179 (patch)
tree5c75652b2eacf7c8728c56c8e3b42248aad430f1
parentfba9ee20938cccfbe2febaf72c3c352745095055 (diff)
add lorri information
-rw-r--r--.envrc9
-rw-r--r--shell.nix8
2 files changed, 17 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..82b2b9e
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+# the shebang is ignored, but nice for editors
+
+if type -P lorri &>/dev/null; then
+ eval "$(lorri direnv)"
+else
+ echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
+ use nix
+fi
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..d029880
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,8 @@
+with (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/release-23.11.tar.gz") {});
+
+pkgs.mkShell {
+ buildInputs = [
+ nodejs_21
+ ];
+}
+