nix-direnv: use flake-aware version 2.0.0

This commit is contained in:
teutat3s 2022-04-26 11:19:50 +02:00
parent 2f38edecf7
commit 8e2037ef4a
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 12 additions and 8 deletions

19
.envrc
View file

@ -1,10 +1,13 @@
# reload when these files change
watch_file flake.nix
watch_file shell.nix
watch_file shell/* flake.nix
use flake || use nix
{
# shell gc root dir
mkdir -p "$(direnv_layout_dir)"
eval "$(nix print-dev-env --profile $(direnv_layout_dir)/flake-profile)"
} || use nix
#watch_file flake.nix
#watch_file shell.nix
#
#{
# # shell gc root dir
# mkdir -p "$(direnv_layout_dir)"
#
# eval "$(nix print-dev-env --profile $(direnv_layout_dir)/flake-profile)"
#} || use nix

View file

@ -26,6 +26,7 @@ channels: final: prev: {
obs-studio
obs-studio-plugins
looking-glass-client
nix-direnv
vimPlugins
;