init
This commit is contained in:
commit
44311a2e72
12 changed files with 379 additions and 0 deletions
13
.envrc
Normal file
13
.envrc
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# if the nix version from the environment does not support flakes, this adds
|
||||
# nix unstable to the environment
|
||||
if ! nix flake metadata >/dev/null; then
|
||||
use_flake() {
|
||||
watch_file flake.nix
|
||||
watch_file flake.lock
|
||||
[ -d "$(direnv_layout_dir)" ] || mkdir "$(direnv_layout_dir)"
|
||||
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
|
||||
}
|
||||
use nix
|
||||
fi
|
||||
|
||||
use flake
|
||||
Loading…
Add table
Add a link
Reference in a new issue