mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 13:03:28 -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;
|
steam.enable = true;
|
||||||
# Programming Stuff
|
# Programming Stuff
|
||||||
nixpkgs-fmt.enable = true;
|
nixpkgs-fmt.enable = true;
|
||||||
|
platformio.enable = true;
|
||||||
python3.enable = true;
|
python3.enable = true;
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
# Utilities
|
# Utilities
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nixpkgs-fmt.nix
|
./nixpkgs-fmt.nix
|
||||||
|
./platformio.nix
|
||||||
./python.nix
|
./python.nix
|
||||||
./vscode.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