A Nix Flake to build the WSL2 Kernel with nftables
support.
- Install nix
- Clone this repo.
cd wsl2-linux-kernel-nix
nix build
cp result/bzImage /mnt/c/Users/<UserName>/kernel
- Configure .wslconfig to use the new kernel.
- Builds off latest git release. Tweak the
./flake.nix
inputs for a different version. - The kernel version string has to be manually updated to match upstream.