mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
Use nix-direnv (#356)
This commit is contained in:
parent
b77e3e9ccb
commit
8a8efebda2
1 changed files with 3 additions and 5 deletions
8
.envrc
8
.envrc
|
@ -1,7 +1,5 @@
|
||||||
use_flake() {
|
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
|
||||||
watch_file flake.nix
|
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
|
||||||
watch_file flake.lock
|
fi
|
||||||
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
|
|
||||||
}
|
|
||||||
|
|
||||||
use flake
|
use flake
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue