1
0

feat: nix direnv

This commit is contained in:
rubyowo
2023-01-29 12:43:18 +04:00
parent 0a5b04e5c2
commit 305be09043
2 changed files with 16 additions and 0 deletions

9
.envrc Normal file
View File

@@ -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

7
shell.nix Normal file
View File

@@ -0,0 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.nodejs
];
}