feat: add Nix development shell (#2645)

This commit is contained in:
Thiago Kenji Okada
2026-07-20 00:57:37 +03:00
committed by GitHub
parent 556b8aee5b
commit 64364bec5d
5 changed files with 153 additions and 0 deletions
+18
View File
@@ -158,6 +158,24 @@ cd crosspoint-reader
git submodule update --init --recursive
```
### Nix/NixOS
Nix/NixOS users can enter the development shell with either `nix develop` (flakes) or `nix-shell`:
```bash
nix develop -f nix
# or
nix-shell nix
```
To flash a connected ESP32-C3 device, enable PlatformIO's udev rules in your NixOS configuration:
```nix
services.udev.packages = with pkgs; [ platformio-core.udev ];
```
After rebuilding the system configuration, reconnect the device or reload udev rules.
### Build / flash / monitor
```bash