/ configurations / nixos / nixos-wsl / config.winget.yaml
config.winget.yaml
 1  # yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
 2  
 3  ###########################################################################
 4  # This configuration will modify various Windows Settings.                #
 5  # PowerShell module: Microsoft.Windows.Settings (v0.1.0-alpha)            #
 6  ###########################################################################
 7  
 8  manifestVersion: 1.0.0
 9  name: "win11"
10  description: "Windows 11 + NixOS WSL"
11  version: 1.0.0
12  
13  properties:
14    configurationVersion: 0.2.0
15    resources:
16      - resource: Microsoft.Windows.Developer/Taskbar
17        directives:
18          description: Modify taskbar settings
19          allowPrerelease: true
20        settings:
21          Alignment: Middle # [Left, Middle]
22          HideLabelsMode: Never # [KeepCurrentValue, WhenFull, Always]
23          SearchBoxMode: Hide # [ShowIconAndLabel, ShowIconOnly, SearchBox, Hide]
24          TaskViewButton: Hide # [Show, Hide]
25          WidgetsButton: Hide # [Show, Hide]
26          RestartExplorer: True # Use caution when setting `RestartExplorer: true` as this will force explorer to close. Required for `HideLabelsMode`.
27  
28      - resource: Microsoft.Windows.Developer/WindowsExplorer
29        directives:
30          description: Modify Windows Explorer settings
31          allowPrerelease: true
32        settings:
33          FileExtensions: Show # [Show, Hide]
34          HiddenFiles: Show # [Show, Hide]
35          ItemCheckBoxes: Hide # [Show, Hide]
36          RestartExplorer: True # Use caution when setting `RestartExplorer: true` as this will force explorer to close. Required for all WindowsExplorer settings.
37  
38      - resource: Microsoft.WinGet.Dsc.Registry
39        id: EnableLongPaths
40        settings:
41          Key: HKLM\SYSTEM\CurrentControlSet\Control\FileSystem
42          Value: LongPathsEnabled
43          Data: 1
44          Type: DWord
45  
46      - resource: Microsoft.WinGet.Dsc.Package
47        id: Vivaldi
48        settings:
49          PackageIdentifier: Vivaldi.Vivaldi
50  
51      - resource: Microsoft.WinGet.Dsc.Package
52        id: PowerToys
53        settings:
54          PackageIdentifier: Microsoft.PowerToys
55  
56      - resource: Microsoft.WinGet.Dsc.Package
57        id: PowerShell
58        settings:
59          PackageIdentifier: Microsoft.PowerShell
60  
61      - resource: Microsoft.WinGet.Dsc.Package
62        id: Ubuntu
63        settings:
64          PackageIdentifier: Ubuntu