Skip to content

Commit

Permalink
Add IDs, Enhance Order, and configure elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly committed Nov 5, 2024
1 parent 49335ed commit bf67740
Showing 1 changed file with 39 additions and 33 deletions.
72 changes: 39 additions & 33 deletions .configurations/configuration.dsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,42 @@
properties:
resources:
########################################################################
# Section: Install Git
########################################################################
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-git
directives:
description: Install Git # Although the user probably already has git installed, it's possible that they don't
allowPrerelease: true
settings:
id: Git.Git
source: winget
Ensure: Present
- resource: Microsoft.WinGet.DSC/WinGetPackage
dependsOn:
- install-git
id: install-github-cli
directives:
description: Install GitHub CLI
allowPrerelease: true
securityContext: elevated
settings:
id: GitHub.cli
source: winget
Ensure: Present
########################################################################
# Section: Configure Git Remotes
########################################################################
- resource: GitDSC/GitRemote
id: add-microsoft-upstream
directives:
description: Add microsoft/winget-dsc as the upstream remote
allowPrerelease: true
settings:
ProjectDirectory: '${WinGetConfigRoot}\..'
RemoteName: upstream
RemoteUrl: https://github.com/microsoft/winget-pkgs.git
########################################################################
# Section: Install VS-Code
########################################################################
- resource: Microsoft.WinGet.DSC/WinGetPackage
Expand All @@ -15,6 +51,7 @@ properties:
source: winget
Ensure: Present
- resource: vscode/VSCodeExtension
id: install-vscode-extension_vscode-yaml
dependsOn:
- install-vs-code
directives:
Expand All @@ -24,6 +61,7 @@ properties:
Name: redhat.vscode-yaml
Ensure: Present
- resource: vscode/VSCodeExtension
id: install-vscode-extension_editorconfig.editorconfig
dependsOn:
- install-vs-code
directives:
Expand All @@ -33,6 +71,7 @@ properties:
Name: EditorConfig.EditorConfig
Ensure: Present
- resource: vscode/VSCodeExtension
id: install-vsscode-extension_ms-vscode.powershell
dependsOn:
- install-vs-code
directives:
Expand All @@ -42,39 +81,6 @@ properties:
Name: ms-vscode.powershell
Ensure: Present
########################################################################
# Section: Install Packages
########################################################################
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-git
directives:
description: Install Git # Although the user probably already has git installed, it's possible that they don't
allowPrerelease: true
settings:
id: Git.Git
source: winget
Ensure: Present
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-git-cli
directives:
description: Install GitHub CLI
allowPrerelease: true
settings:
id: GitHub.cli
source: winget
Ensure: Present
########################################################################
# Section: Configure Git Remotes
########################################################################
- resource: GitDSC/GitRemote
id: add-microsoft-upstream
directives:
description: Add microsoft/winget-dsc as the upstream remote
allowPrerelease: true
settings:
ProjectDirectory: '${WinGetConfigRoot}\..'
RemoteName: upstream
RemoteUrl: https://github.com/microsoft/winget-pkgs.git
########################################################################
# Section: Install PowerShell Modules
########################################################################
- resource: PowerShellModule/PSModuleResource
Expand Down

0 comments on commit bf67740

Please sign in to comment.