This commit is contained in:
Simon Bruder 2021-07-18 10:08:26 +02:00 committed by jalr
commit 44311a2e72
12 changed files with 379 additions and 0 deletions

13
.envrc Normal file
View 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