diff options
-rw-r--r-- | .envrc | 7 | ||||
-rw-r--r-- | shell.nix | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/.envrc b/.envrc index 3550a30..8075d5b 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,6 @@ -use flake +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 flake +fi diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..d2c4c45 --- /dev/null +++ b/shell.nix @@ -0,0 +1,3 @@ +{ system ? builtins.currentSystem }: + +(builtins.getFlake (toString ./.)).devShells.${system}.default |