From d181eb421a461e4cac657679124cb6c7eb0bb0b2 Mon Sep 17 00:00:00 2001 From: aemogie <54412618+aemogie@users.noreply.github.com> Date: Fri, 3 May 2024 11:34:11 +0530 Subject: [PATCH] chore(direnv): only use flake if nix(-direnv) is installed Co-authored-by: seth --- direnv/.envrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direnv/.envrc b/direnv/.envrc index 8392d15..c702436 100644 --- a/direnv/.envrc +++ b/direnv/.envrc @@ -1 +1,3 @@ -use flake \ No newline at end of file +if has nix_direnv_version; then + use flake +fi \ No newline at end of file