diff options
author | Julian Stecklina <julian.stecklina@cyberus-technology.de> | 2023-11-30 17:03:09 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-12 20:29:07 +0100 |
commit | ec2016dda402ded1261d2af0e29d02506b191eab (patch) | |
tree | 6f42b5417eb02cf98b735be1fab00cf6d00d6c3d /nixos/doc/manual/configuration | |
parent | d1f33201effb2ce5b09e86bc15f787b909d40f99 (diff) | |
download | nixlib-ec2016dda402ded1261d2af0e29d02506b191eab.tar nixlib-ec2016dda402ded1261d2af0e29d02506b191eab.tar.gz nixlib-ec2016dda402ded1261d2af0e29d02506b191eab.tar.bz2 nixlib-ec2016dda402ded1261d2af0e29d02506b191eab.tar.lz nixlib-ec2016dda402ded1261d2af0e29d02506b191eab.tar.xz nixlib-ec2016dda402ded1261d2af0e29d02506b191eab.tar.zst nixlib-ec2016dda402ded1261d2af0e29d02506b191eab.zip |
doc: explain how to enable Rust support in the Linux kernel
Diffstat (limited to 'nixos/doc/manual/configuration')
-rw-r--r-- | nixos/doc/manual/configuration/linux-kernel.chapter.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/doc/manual/configuration/linux-kernel.chapter.md b/nixos/doc/manual/configuration/linux-kernel.chapter.md index 9d1b2bc2f9b8..99c94fe64e82 100644 --- a/nixos/doc/manual/configuration/linux-kernel.chapter.md +++ b/nixos/doc/manual/configuration/linux-kernel.chapter.md @@ -92,6 +92,24 @@ To use your custom kernel package in your NixOS configuration, set 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} This section was moved to the [Nixpkgs manual](https://nixos.org/nixpkgs/manual#sec-linux-kernel-developing-modules). |