I have a Vivobook Pro 16x and I just installed Nixos on it. Everything works except the Wifi. The wifi works occasionally, but not always.
I updated the kernel to the latest version by setting boot.kernelPackages = pkgs.linuxPackages_latest;, as I read that was needed for the mediatek 7961 chip to work.
I’ve also tried setting networking.networkmanager.wifi.backend = "iwd", which seems to work slightly better, but only for a few seconds.
So my wifi works for a bit, few seconds, and then nothing loads.
Check dmesg in a broken/unbroken state. It can help properly figure out what the issue is. Colors can help a lot, so if you dump it to a file try to preserve them.
Given the flakyness and charging-related failure, this sounds like some sort of power delivery failure. It’s possible the hardware is simply broken.
There’s some mention of it working on linux 5.15. Give it a try: linuxKernel.kernels.linux_5_15. If it’s a software issue, you may not entirely be out of luck and a kernel update could fix it in a few months or years.
Looking at the number of disparaging reports on that issue makes me think it’s a lot of users reporting similar hardware or configuration problems, rather than a genuine issue; at the very least it seems difficult to get a signal from all the noise. If it is hardware failure, this laptop won’t get fixed. I’d personally return it if reverting to an older kernel fails.
For Linux laptops, lenovo is my go to at the moment, but check the nixos-hardware repo before you buy - doesn’t constitute official support, but if there’s anything major wrong with a laptop you should be able to tell from commits, comments and issues. Note also how overrepresented lenovo is there
If you fix your laptop, don’t hesitate to add a folder for it.
However, it was very easy replacing it. So now I have an AX200 chip, which seems to work perfectly (has now for about half an hour, much longer than the original wifi chip did, and I was able to just use the default kernel for Nixos 21.11, which I believe is 5.10).