Merge pull request #205 from neutralinsomniac/add_default_nix

Add default.nix/.envrc for automagic dev environment on NixOS
This commit is contained in:
ripplebiz 2025-04-24 09:56:48 +10:00 committed by GitHub
commit 70b6e01c49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.direnv
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json

10
default.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:
let
in
pkgs.mkShell {
buildInputs = [
pkgs.platformio
# optional: needed as a programmer i.e. for esp32
pkgs.avrdude
];
}