Skip to content

My "Hello, world!" setup for the esp32 using rust and nix flakes.

Notifications You must be signed in to change notification settings

Gooxey/esp32-idf-nix-setup

Repository files navigation

esp-idf-nix-template

Entering the development environment

$ nix develop

Important

I have used sudo espflash flash --monitor inside the .cargo/config.toml file because of lacking permissions when flashing the esp. If you encounter any errors or do not need root permissions to flash, remove the sudo.

Errors

NixOS cannot run dynamically linked executables intended for generic linux environments out of the box.

Install nix-ld

Something inside ~/.rustup/toolchains/esp/... is missing

Reinstall the esp-rs toolchain

$ espup uninstall
$ espup install

Credit

Template used:

Binary size optimizations from:

About

My "Hello, world!" setup for the esp32 using rust and nix flakes.

Topics

Resources

Stars

Watchers

Forks