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

@ -74,6 +74,7 @@ inputs.nixpkgs.lib.nixosSystem {
steam.enable = true;
# Programming Stuff
nixpkgs-fmt.enable = true;
platformio.enable = true;
python3.enable = true;
vscode.enable = true;
# Utilities

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
];
};
}