feat: installed pioarduino for vscode
This commit is contained in:
parent
3081267b4e
commit
629950bc6f
3 changed files with 31 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ in {
|
||||||
# rust development
|
# rust development
|
||||||
rustAnalyzer.enable = true;
|
rustAnalyzer.enable = true;
|
||||||
|
|
||||||
|
# arduino development
|
||||||
|
platformIO.enable = true;
|
||||||
|
|
||||||
# claude development
|
# claude development
|
||||||
claudeDev = lib.mkIf ai-tooling-enabled {
|
claudeDev = lib.mkIf ai-tooling-enabled {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
./go.nix
|
./go.nix
|
||||||
./evenBetterToml.nix
|
./evenBetterToml.nix
|
||||||
./openRemoteSsh.nix
|
./openRemoteSsh.nix
|
||||||
|
./platformIO.nix
|
||||||
./rustAnalyzer.nix
|
./rustAnalyzer.nix
|
||||||
./astroVscode.nix
|
./astroVscode.nix
|
||||||
./vscodeMdx.nix
|
./vscodeMdx.nix
|
||||||
|
|
|
||||||
27
modules/home-manager-modules/programs/vscode/platformIO.nix
Normal file
27
modules/home-manager-modules/programs/vscode/platformIO.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
pkgsRepositories = pkgs.nix-vscode-extensions.forVSCodeVersion config.programs.vscode.package.version;
|
||||||
|
pkgsRepository = pkgsRepositories.open-vsx;
|
||||||
|
in {
|
||||||
|
options.programs.vscode.profiles = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf (lib.types.submodule ({config, ...}: {
|
||||||
|
options = {
|
||||||
|
extraExtensions.platformIO = {
|
||||||
|
enable = lib.mkEnableOption "should the platformIO extension for vscode be enabled";
|
||||||
|
extension = lib.mkPackageOption pkgsRepository "platformIO" {
|
||||||
|
default = ["pioarduino" "pioarduino-ide"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.extraExtensions.platformIO.enable {
|
||||||
|
extensions = [
|
||||||
|
config.extraExtensions.platformIO.extension
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}));
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue