-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathos-configuration.dsc.yaml
More file actions
54 lines (53 loc) · 2.12 KB
/
Copy pathos-configuration.dsc.yaml
File metadata and controls
54 lines (53 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# yaml-language-server: $schema=https://aka.ms/dsc/schemas/v3/bundled/config/document.vscode.json
##########################################################################################################
# NOTE: Run: dsc config set --file .\configurations\os-configuration.dsc.yaml #
##########################################################################################################
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
metadata:
description: Configure Windows 11 OS settings
winget:
processor:
identifier: dscv3
resources:
- name: OS Version Check
type: Microsoft.DSC/Assertion
properties:
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- name: Verify min OS version
type: Microsoft.Windows.Developer/OsVersion
properties:
MinVersion: '10.0.22631'
- name: Enable Developer Mode
type: Microsoft.Windows.Developer/DeveloperMode
dependsOn:
- "[resourceId('Microsoft.DSC/Assertion', 'OS Version Check')]"
properties:
Ensure: Present
- name: Show hidden files
type: Microsoft.Windows.Developer/ShowHiddenFiles
dependsOn:
- "[resourceId('Microsoft.DSC/Assertion', 'OS Version Check')]"
properties:
Ensure: Present
- name: Show file extensions
type: Microsoft.Windows.Developer/HideFileExtensions
dependsOn:
- "[resourceId('Microsoft.DSC/Assertion', 'OS Version Check')]"
properties:
Ensure: Absent # Ensuring FileExtensions are shown (disables that they should be hidden)
- name: Enable dark mode
type: Microsoft.Windows.Developer/EnableDarkMode
dependsOn:
- "[resourceId('Microsoft.DSC/Assertion', 'OS Version Check')]"
properties:
Ensure: Present
# Use caution when setting RestartExplorer to true as this will force explorer to close.
RestartExplorer: true # Required to apply changes
- name: Install flux
type: Microsoft.WinGet/Package
dependsOn:
- "[resourceId('Microsoft.DSC/Assertion', 'OS Version Check')]"
properties:
id: flux.flux
source: winget