fix: add k8s and hpc modules to main repo

This commit is contained in:
Jonas Juselius
2025-06-30 12:21:05 +02:00
parent 4aa9fa677a
commit bc3a034654
46 changed files with 4393 additions and 0 deletions

View 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 ];
# };
};
}