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.

41 lines
816 B

2 years ago
2 years ago
  1. { lib, pkgs, config, modulesPath, ... }:
  2. with lib;
  3. {
  4. imports = [
  5. "${modulesPath}/installer/scan/not-detected.nix"
  6. ];
  7. boot.loader.grub = {
  8. enable = true;
  9. device = "/dev/sda";
  10. extraConfig = ''
  11. serial --unit=1 --speed=57600 --word=8 --parity=no --stop=1
  12. terminal_input --append serial
  13. terminal_output --append serial
  14. '';
  15. };
  16. boot.initrd.systemd.enable = true;
  17. boot.initrd.availableKernelModules = [
  18. "ahci"
  19. "ohci_pci"
  20. "ehci_pci"
  21. "pata_atiixp"
  22. "usbhid"
  23. "usb_storage"
  24. "sd_mod"
  25. "sr_mod"
  26. ];
  27. boot.initrd.kernelModules = [ ];
  28. boot.kernelModules = [ "kvm-amd" ];
  29. boot.extraModulePackages = [ ];
  30. nixpkgs.hostPlatform = "x86_64-linux";
  31. hardware.enableRedistributableFirmware = true;
  32. hardware.cpu.amd.updateMicrocode = true;
  33. }