.envrc 325 B

123456789101112131415
  1. use_flake() {
  2. watch_file flake.lock
  3. watch_file flake.nix
  4. watch_file cells/repo/devshells.nix
  5. watch_file cells/repo/configs.nix
  6. mkdir -p $(direnv_layout_dir)
  7. eval "$(nix print-dev-env \
  8. --profile "$(direnv_layout_dir)/flake-profile" \
  9. --option builders "")"
  10. }
  11. use flake