-
Notifications
You must be signed in to change notification settings - Fork 0
/
os-configuration.dsc.yaml
65 lines (64 loc) · 2.31 KB
/
os-configuration.dsc.yaml
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
55
56
57
58
59
60
61
62
63
64
65
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
##########################################################################################################
# This configuration will configure various windows settings on Windows 11 #
# NOTE: Run: winget configure .\os-configuration.dsc.yaml --accept-configuration-agreements #
##########################################################################################################
properties:
configurationVersion: 0.2.0
assertions:
- resource: Microsoft.Windows.Developer/OsVersion
id: osVersionAssertion
directives:
description: Verify min OS version requirement
allowPrerelease: true
settings:
MinVersion: '10.0.22631'
resources:
- resource: Microsoft.Windows.Developer/DeveloperMode
id: developerMode
directives:
description: Enable Developer Mode
allowPrerelease: true
settings:
Ensure: Present
dependsOn:
- osVersionAssertion
- resource: Microsoft.Windows.Developer/ShowHiddenFiles
id: showHiddenFiles
directives:
description: Show hidden files
allowPrerelease: true
settings:
Ensure: Present # Ensuring Hidden files are shown
dependsOn:
- osVersionAssertion
- resource: Microsoft.Windows.Developer/HideFileExtensions
id: hideFileExtensions
directives:
description: Show file extensions
allowPrerelease: true
settings:
Ensure: Absent # Ensuring FileExtensions are shown (disables that they should be hidden)
dependsOn:
- osVersionAssertion
- resource: Microsoft.Windows.Developer/EnableDarkMode
id: enableDarkMode
directives:
description: Enable dark mode
allowPrerelease: true
settings:
Ensure: Present
# Use caution when setting `RestartExplorer: true` as this will force explorer to close.
RestartExplorer: true # Required to apply changes
dependsOn:
- osVersionAssertion
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: Flux
directives:
description: Install f.lux
allowPrerelease: true
settings:
id: flux.flux
source: winget
dependsOn:
- osVersionAssertion