diff --git a/.envrc b/.envrc index 0f94eed..a7a9086 100644 --- a/.envrc +++ b/.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 + diff --git a/flake.nix b/flake.nix index a57fe5a..71c3347 100644 --- a/flake.nix +++ b/flake.nix @@ -93,6 +93,9 @@ devShells = forEachSystem' ({ system, pkgs, ... }: { default = pkgs.mkShell { packages = [ + pkgs.direnv + pkgs.lorri + inputs.agenix.packages.${system}.agenix pkgs.opentofu