NixOS deployment for LinuxLab
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.

65 lines
1.3 KiB

2 weeks ago
2 weeks ago
2 weeks ago
2 weeks ago
  1. { modulesPath, ... }:
  2. {
  3. imports = [
  4. "${modulesPath}/installer/scan/not-detected.nix"
  5. ];
  6. nixpkgs.hostPlatform = "x86_64-linux";
  7. boot.initrd.availableKernelModules = [
  8. "uhci_hcd"
  9. "ehci_pci"
  10. "ata_piix"
  11. "mptsas"
  12. "usb_storage"
  13. "usbhid"
  14. "sd_mod"
  15. "sr_mod"
  16. ];
  17. boot.loader = {
  18. systemd-boot.enable = true;
  19. efi.canTouchEfiVariables = true;
  20. };
  21. hardware.enableRedistributableFirmware = true;
  22. hardware.cpu.intel.updateMicrocode = true;
  23. disko.devices = {
  24. disk = {
  25. root = {
  26. type = "disk";
  27. device = "/dev/disk/by-path/pci-0000:01:00.0-scsi-0:1:0:0";
  28. imageSize = "64G";
  29. content = {
  30. type = "gpt";
  31. partitions = {
  32. boot = {
  33. size = "1M";
  34. type = "EF02";
  35. };
  36. ESP = {
  37. size = "512M";
  38. type = "EF00";
  39. content = {
  40. type = "filesystem";
  41. format = "vfat";
  42. mountpoint = "/boot";
  43. };
  44. };
  45. root = {
  46. size = "100%";
  47. content = {
  48. type = "filesystem";
  49. format = "ext4";
  50. mountpoint = "/";
  51. };
  52. };
  53. };
  54. };
  55. };
  56. };
  57. };
  58. }