From cea69b656f04084b33521e4cd6d39ad074a684b2 Mon Sep 17 00:00:00 2001 From: Yuto Nishida Date: Fri, 29 Aug 2025 22:45:29 -0700 Subject: [PATCH] Experimental envrc --- .envrc | 11 +++++++++++ .gitignore | 3 --- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1053a86 --- /dev/null +++ b/.envrc @@ -0,0 +1,11 @@ +if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then + source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs=" +fi + +watch_file flake-profiles/everything-devenv/flake.nix +watch_file flake-profiles/everything-devenv/flake.lock +watch_file flake-profiles/outputs.nix +if ! use flake ./flake-profiles/everything-devenv --impure +then + echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2 +fi \ No newline at end of file diff --git a/.gitignore b/.gitignore index a22752c..f0ada8f 100644 --- a/.gitignore +++ b/.gitignore @@ -11,9 +11,6 @@ devenv.local.nix # nix build result -# Per-cloned local envrc -.envrc - # Dotenv .env .env.* -- 2.51.2