-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.dsc.yaml
236 lines (212 loc) · 6.88 KB
/
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
resources:
- resource: Microsoft.Windows.Developer/DeveloperMode
directives:
description: Enable Developer Mode
allowPrerelease: true
settings:
Ensure: Present
- resource: Script
id: create-apps-config
directives:
description: Create apps directory
settings:
getScript: "% 'no-op'"
setScript:
if (-not (Test-Path -Path "c:\projects\apps\config")) { New-Item -Path "c:\projects\apps\config" -ItemType Directory }
if (-not (Test-Path -Path "c:\projects\apps\data")) { New-Item -Path "c:\projects\apps\data" -ItemType Directory }
if (-not (Test-Path -Path "c:\projects\apps\state")) { New-Item -Path "c:\projects\apps\state" -ItemType Directory }
if (-not (Test-Path -Path "c:\projects\tools")) { New-Item -Path "c:\projects\tools" -ItemType Directory }
if (-not (Test-Path -Path "c:\projects\repos")) { New-Item -Path "c:\projects\repos" -ItemType Directory }
testScript: (Test-Path -Path "c:\projects\apps\config") -And (Test-Path -Path "c:\projects\apps\data") -And (Test-Path -Path "c:\projects\apps\state") -And (Test-Path -Path "c:\projects\tools") -And (Test-Path -Path "c:\projects\repos")
- resource: Environment
id: xdg-config-home-envar
directives:
module: PSDscResources
description: Set XDG_CONFIG_HOME
settings:
Name: 'XDG_CONFIG_HOME'
Value: 'C:\projects\apps\config'
Ensure: Present
Target: Machine
Path: false
- resource: Environment
id: xdg-data-home-envar
directives:
module: PSDscResources
description: Set XDG_DATA_HOME
settings:
Name: 'XDG_DATA_HOME'
Value: 'C:\projects\apps\data'
Ensure: Present
Target: Machine
Path: false
- resource: Environment
id: xdg-state-home-envar
directives:
module: PSDscResources
description: Set XDG_STATE_HOME
settings:
Name: 'XDG_STATE_HOME'
Value: 'C:\projects\apps\state'
Ensure: Present
Target: Machine
Path: false
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: Microsoft.WindowsTerminal
directives:
description: Install Windows Terminal
allowPrerelease: false
settings:
id: Microsoft.WindowsTerminal
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
directives:
description: Install Git
allowPrerelease: true
settings:
id: Git.Git
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
directives:
description: Install Glazewm
allowPrerelease: false
settings:
id: glzr-io.glazewm
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: Nushell.Nushell
directives:
description: Install Nushell
allowPrerelease: false
settings:
id: Nushell.Nushell
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: Microsoft.Sysinternals
directives:
description: Install Sysinternals
allowPrerelease: false
settings:
id: Microsoft.Sysinternals
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-rider
directives:
description: Install JetBrains Rider
allowPrerelease: false
settings:
id: JetBrains.Rider
source: winget
Ensure: Present
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-clion
directives:
description: Install JetBrains CLion
allowPrerelease: false
settings:
id: JetBrains.CLion
source: winget
Ensure: Present
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-vs-code
directives:
description: Install Microsoft Visual Studio Code
allowPrerelease: true
settings:
id: Microsoft.VisualStudioCode
source: winget
Ensure: Present
- resource: vscode/VSCodeExtension
dependsOn:
- install-vs-code
directives:
description: Install EditorConfig extension for VSCode
allowPrerelease: true
settings:
Name: EditorConfig.EditorConfig
Ensure: Present
- resource: vscode/VSCodeExtension
dependsOn:
- install-vs-code
directives:
description: Install Vim extension for VSCode
allowPrerelease: true
settings:
Name: vscodevim.vim
Ensure: Present
- resource: vscode/VSCodeExtension
dependsOn:
- install-vs-code
directives:
description: Install csharpier extension for VSCode
allowPrerelease: true
settings:
Name: csharpier.csharpier-vscode
Ensure: Present
- resource: vscode/VSCodeExtension
dependsOn:
- install-vs-code
directives:
description: Install xml extension for VSCode
allowPrerelease: true
settings:
Name: redhat.vscode-xml
Ensure: Present
- resource: vscode/VSCodeExtension
dependsOn:
- install-vs-code
directives:
description: Install Rainbow CSV extension for VSCode
allowPrerelease: true
settings:
Name: mechatroner.rainbow-csv
Ensure: Present
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: vsPackage
directives:
description: Install Visual Studio 2022 Professional
allowPrerelease: true
settings:
id: Microsoft.VisualStudio.2022.Professional
source: winget
- resource: Microsoft.VisualStudio.DSC/VSComponents
dependsOn:
- vsPackage
directives:
description: Install required VS workloads from vsconfig file
allowPrerelease: true
settings:
productId: Microsoft.VisualStudio.Product.Professional
channelId: VisualStudio.17.Release
vsConfigFile: '${WinGetConfigRoot}\.vsconfig'
includeRecommended: true
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-hexyl
directives:
description: Install Hexyl
allowPrerelease: false
settings:
id: sharkdp.hexyl
source: winget
Ensure: Present
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-neovim
directives:
description: Install Neovim
allowPrerelease: false
settings:
id: Neovim.Neovim
source: winget
Ensure: Present
- resource: GitDsc/GitClone
dependsOn:
- create-apps-config
directives:
description: Clone my Neovim configuration
allowPrerelease: true
settings:
HttpsUrl: https://github.com/stewart-james/nvim.git
RootDirectory: 'c:/projects/apps/config/'
configurationVersion: 0.2.0