chore: add lorri to prevent direnv from blocking, closes #147
This commit is contained in:
parent
14935c5e92
commit
4dd93c3672
2 changed files with 13 additions and 1 deletions
11
.envrc
11
.envrc
|
@ -1,2 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
# the shebang is ignored, but nice for editors
|
||||
|
||||
# shellcheck shell=bash
|
||||
use flake
|
||||
if type -P lorri &>/dev/null; then
|
||||
eval "$(lorri direnv --flake .)"
|
||||
else
|
||||
echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
|
||||
use flake
|
||||
fi
|
||||
|
||||
|
|
|
@ -93,6 +93,9 @@
|
|||
devShells = forEachSystem' ({ system, pkgs, ... }: {
|
||||
default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.direnv
|
||||
pkgs.lorri
|
||||
|
||||
inputs.agenix.packages.${system}.agenix
|
||||
|
||||
pkgs.opentofu
|
||||
|
|
Loading…
Reference in a new issue