nixos/hardware.infiniband: remove with lib;
This commit is contained in:
parent
58e31e0c26
commit
e880cd1549
@ -1,7 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
cfg = config.hardware.infiniband;
|
cfg = config.hardware.infiniband;
|
||||||
@ -31,9 +28,9 @@ in
|
|||||||
|
|
||||||
{
|
{
|
||||||
options.hardware.infiniband = {
|
options.hardware.infiniband = {
|
||||||
enable = mkEnableOption "Infiniband support";
|
enable = lib.mkEnableOption "Infiniband support";
|
||||||
guids = mkOption {
|
guids = lib.mkOption {
|
||||||
type = with types; listOf str;
|
type = with lib.types; listOf str;
|
||||||
default = [];
|
default = [];
|
||||||
example = [ "0xe8ebd30000eee2e1" ];
|
example = [ "0xe8ebd30000eee2e1" ];
|
||||||
description = ''
|
description = ''
|
||||||
@ -42,7 +39,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
boot.initrd.kernelModules = [
|
boot.initrd.kernelModules = [
|
||||||
"mlx5_core" "mlx5_ib" "ib_cm"
|
"mlx5_core" "mlx5_ib" "ib_cm"
|
||||||
"rdma_cm" "rdma_ucm" "rpcrdma"
|
"rdma_cm" "rdma_ucm" "rpcrdma"
|
||||||
|
Loading…
Reference in New Issue
Block a user