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.

68 lines
1.4 KiB

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