use_flake() { watch_file flake.nix watch_file flake.lock eval "$(mkdir -p $(direnv_layout_dir) && nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile" $1)" } use_nix-shell() { watch_file $1 mkdir -p $(direnv_layout_dir) profile="$(direnv_layout_dir)/shell-profile" eval "$(nix print-dev-env --profile $profile --impure --file $1)" }