/wsl2-kernel-nix

Nix Flake build for WSL2 Linux Kernel with nftables support

Primary LanguageNixGNU General Public License v2.0GPL-2.0

WSL2 Kernel with nftables

built with nix

A Nix Flake to build the WSL2 Kernel with nftables support.

Instructions

  1. Install nix
  2. Clone this repo.
  3. cd wsl2-linux-kernel-nix
  4. nix build
  5. cp result/bzImage /mnt/c/Users/<UserName>/kernel
  6. Configure .wslconfig to use the new kernel.

Caveats

  • 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.