Adding PlatformIO

This commit is contained in:
Annika Merris 2024-08-17 11:18:22 -04:00
parent 4f39b7e408
commit 987fac772d
3 changed files with 18 additions and 0 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./nixpkgs-fmt.nix
./platformio.nix
./python.nix
./vscode.nix
];

View file

@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
{
options = {
platformio = {
enable = lib.mkEnableOption {
description = "Enable platformio";
default = false;
};
};
};
config = lib.mkIf (config.platformio.enable) {
environment.systemPackages = [
pkgs.platformio
];
};
}