Problem making dependency available to flake

I’m taking my first steps with nix on macOS using, and using this guide to get it going. The problem I’m running into is that the mise part of the install fails to install rust because curl and wget are unavailable:

Activating setupMise
mise ~/.config/mise/config.toml tools: node@22.21.1
mise ~/.config/mise/config.toml tools: bun@1.3.2
mise ~/.config/mise/config.toml tools: deno@2.5.6
mise ~/.config/mise/config.toml tools: uv@0.9.10
error: need 'curl or wget' (command not found)
mise ERROR ~/Library/Caches/mise/rust/rustup-init failed
error: need 'curl or wget' (command not found)
mise ERROR failed to install core:rust@stable
mise ERROR ~/Library/Caches/mise/rust/rustup-init exited with non-zero status: exit code 1
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information

Here’s the flake config for mise in that repo. curl is already installed on my system:

$ which curl
/usr/bin/curl

And is also listed as a package elsewhere in this config.

As much as I’d love to get this working, I’d appreciate if someone could help me understand why it’s broken. I feel like this might be the piece that makes all of this finally click for me.

Home-manager resets the PATH variable before running activation scripts, to restrict the execution of arbitrary executables.

Are you sure you really want to 1. use mise, 2. use mise like this? If you want rustup, you can just install the rustup nix package.

Thanks for that, I assumed it was something along those lines. I’d also thought though that having curl listed in home.packages would have addressed that issue.

As for your questions, I’m mostly trying to just understand why this isn’t working right now. I’ll make a more informed decision on what I actually want to do going forward after I’m confident I understand the pros/cons/tradeoffs/etc.

I think you need to add it to home.extraActivationPath