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.

91 lines
1.8 KiB

1 month ago
1 month ago
1 month ago
1 month ago
  1. { modulesPath, ... }:
  2. {
  3. imports = [
  4. "${modulesPath}/installer/scan/not-detected.nix"
  5. ];
  6. nixpkgs.hostPlatform = "x86_64-linux";
  7. boot = {
  8. loader = {
  9. systemd-boot.enable = true;
  10. efi.canTouchEfiVariables = true;
  11. };
  12. consoleLogLevel = 3;
  13. initrd = {
  14. systemd.enable = true;
  15. verbose = false;
  16. availableKernelModules = [
  17. "uhci_hcd"
  18. "ehci_pci"
  19. "ata_piix"
  20. "mptsas"
  21. "usb_storage"
  22. "usbhid"
  23. "sd_mod"
  24. "sr_mod"
  25. ];
  26. };
  27. kernelParams = [
  28. "quiet"
  29. "udev.log_level=3"
  30. ];
  31. plymouth = {
  32. enable = true;
  33. theme = "bgrt";
  34. };
  35. };
  36. hardware.enableRedistributableFirmware = true;
  37. hardware.cpu.intel.updateMicrocode = true;
  38. disko.devices = {
  39. disk = {
  40. root = {
  41. type = "disk";
  42. device = "/dev/disk/by-path/pci-0000:04:00.0-nvme-1";
  43. imageSize = "32G";
  44. content = {
  45. type = "gpt";
  46. partitions = {
  47. boot = {
  48. size = "1M";
  49. type = "EF02";
  50. };
  51. ESP = {
  52. size = "512M";
  53. type = "EF00";
  54. content = {
  55. type = "filesystem";
  56. format = "vfat";
  57. mountpoint = "/boot";
  58. };
  59. };
  60. root = {
  61. end = "-8G";
  62. content = {
  63. type = "filesystem";
  64. format = "ext4";
  65. mountpoint = "/";
  66. };
  67. };
  68. swap = {
  69. size = "100%";
  70. content = {
  71. type = "swap";
  72. randomEncryption = true;
  73. resumeDevice = false;
  74. };
  75. };
  76. };
  77. };
  78. };
  79. };
  80. };
  81. }