meatcar / wsl2-kernel-nix

Nix Flake build for WSL2 Linux Kernel with nftables support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Nix Flake build for WSL2 Linux Kernel with nftables support

License:GNU General Public License v2.0


Languages

Language:Nix 100.0%