mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-13 12:20:27 -05:00
17 lines
308 B
Nix
17 lines
308 B
Nix
|
|
{ config, pkgs, lib, ... }:
|
||
|
|
{
|
||
|
|
options = {
|
||
|
|
platformio = {
|
||
|
|
enable = lib.mkEnableOption {
|
||
|
|
description = "Enable platformio";
|
||
|
|
default = false;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
config = lib.mkIf (config.platformio.enable) {
|
||
|
|
environment.systemPackages = [
|
||
|
|
pkgs.platformio
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|