use_flake() {
  watch_file flake.nix
  watch_file site.hs
  watch_file blogng.cabal
  watch_file flake.lock
  mkdir -p "$(direnv_layout_dir)"
  eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile" "$@")"
}

use_flake
