diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..4e2fe0f --- /dev/null +++ b/.envrc @@ -0,0 +1,9 @@ +if has lorri; then + eval "$(lorri direnv)" +elif has nix; then + echo "Using flake fallback since lorri isn't installed" + use flake +else + # noop + echo "Unsupported direnv configuration. We need nix flake support and lorri installed" +fi diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 312dff8..0000000 --- a/shell.nix +++ /dev/null @@ -1,11 +0,0 @@ -let - lock = builtins.fromJSON (builtins.readFile ./flake.lock); -in -(import ( - fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; - sha256 = lock.nodes.flake-compat.locked.narHash; - } -) { - src = ./.; -}).devShell \ No newline at end of file