https://stephenreescarter.net/how-to-shrink-a-wsl2-virtual-disk/
wsl --shutdown
wsl --manage NixOS-Groundtruth -s false
(Get-ChildItem -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss | Where-Object { $_.GetValue("DistributionName") -eq 'NixOS-Groundtruth' }).GetValue("BasePath") + "\ext4.vhdx" | Set-Clipboard
diskpart
> select vdisk file="\\?\C:\Users\dkahlenberg\NixOS\ext4.vhdx"
> compact vdisk
> exit
wsl --manage NixOS-Groundtruth -s true
Alternative:
https://superuser.com/questions/1606213/how-do-i-get-back-unused-disk-space-from-ubuntu-on-wsl2
Also: