doc: explain how to enable Rust support in the Linux kernel
This commit is contained in:
@@ -92,6 +92,24 @@ To use your custom kernel package in your NixOS configuration, set
|
|||||||
boot.kernelPackages = pkgs.linuxPackagesFor yourCustomKernel;
|
boot.kernelPackages = pkgs.linuxPackagesFor yourCustomKernel;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Rust
|
||||||
|
|
||||||
|
The Linux kernel does not have Rust language support enabled by
|
||||||
|
default. For kernel versions 6.7 or newer, experimental Rust support
|
||||||
|
can be enabled. In a NixOS configuration, set:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
boot.kernelPatches = [
|
||||||
|
{
|
||||||
|
name = "Rust Support";
|
||||||
|
patch = null;
|
||||||
|
features = {
|
||||||
|
rust = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
```
|
||||||
|
|
||||||
## Developing kernel modules {#sec-linux-config-developing-modules}
|
## Developing kernel modules {#sec-linux-config-developing-modules}
|
||||||
|
|
||||||
This section was moved to the [Nixpkgs manual](https://nixos.org/nixpkgs/manual#sec-linux-kernel-developing-modules).
|
This section was moved to the [Nixpkgs manual](https://nixos.org/nixpkgs/manual#sec-linux-kernel-developing-modules).
|
||||||
|
|||||||
Reference in New Issue
Block a user