Jump to content

Bicep: Difference between revisions

From Official NixOS Wiki
Bicep
 
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:


== Configuring VSCode extension for Bicep ==
== Configuring VSCode extension for Bicep ==
<syntaxhighlight lang="nixos">
  programs.vscode = {
  programs.vscode = {
    enable = true;
    enable = true;
Line 31: Line 32:
    ];
    ];
  };
  };
</syntaxhighlight>
[[Category:Cloud]]

Latest revision as of 19:33, 18 January 2026

Bicep is a Domain Specific Language (DSL) for deploying Azure resources declaratively.

Installation

Add pkgs.bicep to environment.systemPackages.

Configuring VSCode extension for Bicep

 programs.vscode = {
   enable = true;
   package = pkgs.codium;
   profiles.default = {
     "dotnetAcquisitionExtension.sharedExistingDotnetPath" = "${pkgs.dotnet-sdk_8}/bin/dotnet";
     "dotnetAcquisitionExtension.existingDotnetPath" = [
        {
           "extensionId" = "ms-dotnettools.csharp";
           "path" = "${pkgs.dotnet-sdk_8}/bin/dotnet";
        }
        {
           "extensionId" = "ms-dotnettools.csdevkit";
           "path" = "${pkgs.dotnet-sdk_8}/bin/dotnet";
        }
        {
           "extensionId" = "ms-azuretools.vscode-bicep";
           "path" = "${pkgs.dotnet-sdk_8}/bin/dotnet";
        }
     ];
   extensions = with pkgs.vscode-extensions; [
     ms-azuretools.vscode-bicep
     ms-dotnettools.csdevkit
     ms-dotnettools.csharp
     ms-dotnettools.vscode-dotnet-runtime
   ];
 };