diff options
Diffstat (limited to '.envrc')
| -rw-r--r-- | .envrc | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -1,11 +1,6 @@ -# only use flake when `nix` is present -if command -v nix &> /dev/null; then - 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 ./parts/dev.nix - use flake +# only use flake when `nix-direnv` is installed +if has nix_direnv_version; then + use flake ./nix/dev fi dotenv_if_exists |
