Replace lorri with nix-direnv

This commit is contained in:
coolneng 2021-09-29 12:09:49 +02:00
parent a0d41c649d
commit 035ad35ac7
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 5 additions and 4 deletions

1
direnv/.direnvrc Normal file
View File

@ -0,0 +1 @@
source /run/current-system/sw/share/nix-direnv/direnvrc

View File

@ -1,4 +1,4 @@
#!/bin/sh
lorri init
echo "use flake" >.envrc
direnv allow

View File

@ -21,7 +21,7 @@ if [ "$type" = "git" ]; then
mkdir src data
git add ./*
git commit -m "Initial commit"
lorri init
echo "use flake" >.envrc
direnv allow
elif [ "$type" = "remote-git" ]; then
git init
@ -31,7 +31,7 @@ elif [ "$type" = "remote-git" ]; then
mkdir src tests data
git add ./*
git commit -m "Initial commit"
lorri init
echo "use flake" >.envrc
direnv allow
elif [ "$type" = "doc" ]; then
mkdir docs docs/assets
@ -39,7 +39,7 @@ elif [ "$type" = "doc" ]; then
elif [ "$type" = "src" ]; then
cp ~/Documents/IT/shell.nix .
mkdir src data
lorri init
echo "use flake" >.envrc
direnv allow
else
usage