mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 12:03:11 -05:00
Adding PlatformIO
This commit is contained in:
parent
4f39b7e408
commit
987fac772d
3 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./nixpkgs-fmt.nix
|
||||
./platformio.nix
|
||||
./python.nix
|
||||
./vscode.nix
|
||||
];
|
||||
|
|
|
|||
16
modules/common/programming/platformio.nix
Normal file
16
modules/common/programming/platformio.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue