mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 12:45:27 +03:00
doc: explain how to enable Rust support in the Linux kernel
This commit is contained in:
parent
d1f33201ef
commit
ec2016dda4
1 changed files with 18 additions and 0 deletions
|
@ -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).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue