A small subset of Mellanox OFED packages ported to NixOS.
This project is experimental and may stay experimental for a long time. Not all packages are fully tested, because I don't have the hardware to validate some of the scenarios like InfiniBand. Any help or suggestions are welcomed.
- Address:
https://mlnx-ofed-nixos.cachix.org
- Public key:
mlnx-ofed-nixos.cachix.org-1:jL/cqleOzhPw87etuHMeIIdAgFDKX8WnTBYMSBx3toI=
This flake provides:
overlays.default
for adding packages into yourpkgs
nixosModules.default
for easy configuration
A simple example flake would be:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
mlnx-ofed-nixos = {
url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, ... }@inputs: {
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Add packages from this repo and set up binary cache
inputs.mlnx-ofed-nixos.nixosModules.setupCacheAndOverlays
# Add configuration options from this repo
inputs.mlnx-ofed-nixos.nixosModules.default
# Example configuration
({ config, ... }: {
hardware.mlnx-ofed = {
enable = true;
fwctl.enable = true;
nvme.enable = true;
nfsrdma.enable = true;
kernel-mft.enable = true;
};
})
];
};
};
}