feat: faster flakes with direnv
This commit is contained in:
parent
58a7612b0a
commit
1c61854a11
1 changed files with 6 additions and 0 deletions
6
.config/direnv/lib/use_flake.sh
Executable file
6
.config/direnv/lib/use_flake.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
use_flake() {
|
||||
watch_file flake.nix
|
||||
watch_file flake.lock
|
||||
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue