fix: add k8s and hpc modules to main repo
This commit is contained in:
29
modules/hpc/mft/default.nix
Normal file
29
modules/hpc/mft/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{config, lib, pkgs,...}:
|
||||
with lib;
|
||||
let
|
||||
kernel = config.boot.kernelPackages.kernel;
|
||||
|
||||
mft = pkgs.callPackage ./mft.nix { inherit kernel; };
|
||||
in
|
||||
{
|
||||
###### interface
|
||||
|
||||
options.features.hpc.mft = {
|
||||
enable = mkEnableOption "Mellanox MFT";
|
||||
};
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf config.features.hpc.mft.enable {
|
||||
environment.etc."mft/mft.conf".source = "${mft.mft}/etc/mft/mft.conf";
|
||||
environment.etc."mft/mst.conf".source = "${mft.mft}/etc/mft/mst.conf";
|
||||
environment.etc."mft/ca-bundle.crt".source = "${mft.mft}/etc/mft/ca-bundle.crt";
|
||||
|
||||
environment.systemPackages = [ pkgs.pciutils mft.mft ];
|
||||
|
||||
# boot = {
|
||||
# kernelModules = [ "mst_pci" "mst_pciconf" ];
|
||||
# extraModulePackages = [ mft.mft-kernel-module ];
|
||||
# };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user