mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
31 lines
625 B
Nix
31 lines
625 B
Nix
{ pkgs, ... }: {
|
|
name = "kernel-rust";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ blitz ];
|
|
};
|
|
|
|
nodes.machine = { config, pkgs, ... }:
|
|
{
|
|
boot.kernelPackages = pkgs.linuxPackages_testing;
|
|
|
|
boot.extraModulePackages = [
|
|
config.boot.kernelPackages.rust-out-of-tree-module
|
|
];
|
|
|
|
boot.kernelPatches = [
|
|
{
|
|
name = "Rust Support";
|
|
patch = null;
|
|
features = {
|
|
rust = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("default.target")
|
|
machine.succeed("modprobe rust_out_of_tree")
|
|
'';
|
|
}
|