mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02: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")
|
||
|
'';
|
||
|
}
|