Skip to content

Instantly share code, notes, and snippets.

@td2sk
Last active October 9, 2023 12:05
Show Gist options
  • Save td2sk/2eaed996adedd4d78a4376ad8f922187 to your computer and use it in GitHub Desktop.
Save td2sk/2eaed996adedd4d78a4376ad8f922187 to your computer and use it in GitHub Desktop.
My DSCs
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
configurationVersion: "0.2.0"
resources:
# Show FileExt (reboot required)
- resource: Registry
directives:
description: Show extensions
allowPrerelease: true
settings:
key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
valueName: HideFileExt
valueData: 0
valueType: Dword
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
configurationVersion: 0.2.0
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: vsPackage
directives:
description: Install Visual Studio 2022 BuildTools
allowPrerelease: true
settings:
id: Microsoft.VisualStudio.2022.BuildTools
source: winget
# VSComponents requires privilege to execute.
- resource: Microsoft.VisualStudio.DSC/VSComponents
dependsOn:
- vsPackage
directives:
description: Install Visual Studio build components
allowPrerelease: true
settings:
productId: Microsoft.VisualStudio.Product.BuildTools
channelId: VisualStudio.17.Release
components:
- Microsoft.VisualStudio.Component.VC.Tools.x86.x64
- Microsoft.VisualStudio.Component.Windows11SDK.22621
- resource: Microsoft.WinGet.DSC/WinGetPackage
directives:
description: Install rustup
allowPrerelease: true
settings:
id: Rustlang.Rustup
source: winget
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
configurationVersion: "0.2.0"
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
directives:
description: Install rye
allowPrerelease: true
settings:
id: Rye.Rye
source: winget
# administrator required
# execute `rye config --set-bool behavior.global-python=true` after installation if required
- resource: Environment
directives:
description: Set rye/shims in PATH
allowPrerelease: true
settings:
name: PATH
path: true
ensure: Present
value: "%USERPROFILE%\\.rye\\shims"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment