From c39703e1732a74d945671ee7b794e7e2e321dc69 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Sat, 4 Feb 2023 19:40:41 +0100 Subject: [PATCH] chore: add Nix direnv config --- .envrc | 3 +++ default.nix | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 .envrc create mode 100644 default.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..a2cf81c --- /dev/null +++ b/.envrc @@ -0,0 +1,3 @@ +export NODE_ENV=development +use_nix + diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..476a761 --- /dev/null +++ b/default.nix @@ -0,0 +1,9 @@ +{ pkgs ? import {} }: + pkgs.mkShell { + nativeBuildInputs = with pkgs; [ nodejs-18_x yarn ]; + + shellHook = '' + yarn set version berry + ''; +} +