NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
648 B

1 year ago
  1. { lib, pkgs, config, modulesPath, ... }:
  2. with lib;
  3. {
  4. imports = [
  5. "${modulesPath}/installer/scan/not-detected.nix"
  6. ];
  7. boot.loader.grub.enable = true;
  8. boot.loader.grub.device = "/dev/sda";
  9. boot.initrd.systemd.enable = true;
  10. boot.initrd.availableKernelModules = [
  11. "ahci"
  12. "ohci_pci"
  13. "ehci_pci"
  14. "pata_atiixp"
  15. "usbhid"
  16. "usb_storage"
  17. "sd_mod"
  18. "sr_mod"
  19. ];
  20. boot.initrd.kernelModules = [ ];
  21. boot.kernelModules = [ "kvm-amd" ];
  22. boot.extraModulePackages = [ ];
  23. nixpkgs.hostPlatform = "x86_64-linux";
  24. hardware.enableRedistributableFirmware = true;
  25. hardware.cpu.amd.updateMicrocode = true;
  26. }