From c39d38cea49041508ada9a3356930c5c183b2b49 Mon Sep 17 00:00:00 2001 From: Slim Date: Wed, 12 Nov 2025 23:05:05 +0100 Subject: [PATCH] fix .envrc failing when using direnv and not nix --- .envrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.envrc b/.envrc index a6ee435c9..8472c3197 100644 --- a/.envrc +++ b/.envrc @@ -1,5 +1,7 @@ # shellcheck shell=bash +if [ -f /etc/NIXOS ]; then if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM=" fi use flake +fi