Skip to content

Documented new wsl.conf options #2175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions WSL/wsl-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,23 @@ wsl.conf section label: `[boot]`
| Key | Value | Default | Notes |
|:----|:----|:----|:----|
| `command` | string | `""` | A string of the command that you would like to run when the WSL instance starts. This command is run as the root user. e.g: `service docker start`. |
| `protectBinfmt` | boolean | `true` | Prevents WSL from generating systemd units when systemd is enabled. |

### GPU settings

wsl.conf section label: `[gpu]`

| Key | Value | Default | Notes |
|:----|:----|:----|:----|
| `enabled` | boolean | `true` | Allow Linux applications to access the Windows GPU via para-virtualization. |

### Time settings

wsl.conf section label: `[time]`

| Key | Value | Default | Notes |
|:----|:----|:----|:----|
| `useWindowsTimezone` | boolean | `true` | Setting this key will make WSL use and sync to the timezone set in Windows. |

### Example wsl.conf file

Expand Down