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.

89 lines
1.7 KiB

2 weeks ago
2 weeks ago
2 weeks ago
2 weeks ago
2 weeks ago
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 = {
  8. loader = {
  9. grub.enable = true;
  10. };
  11. #consoleLogLevel = 3;
  12. initrd = {
  13. #systemd.enable = true;
  14. #verbose = true;
  15. availableKernelModules = [
  16. "xhci_pci"
  17. "ahci"
  18. "nvme"
  19. "usbhid"
  20. ];
  21. };
  22. kernelModules = [ "kvm-intel" ];
  23. kernelParams = [
  24. #"quiet"
  25. #"udev.log_level=3"
  26. "log_level=4"
  27. ];
  28. #plymouth = {
  29. # enable = true;
  30. # theme = "bgrt";
  31. #};
  32. };
  33. hardware.enableRedistributableFirmware = true;
  34. hardware.cpu.intel.updateMicrocode = true;
  35. disko.devices = {
  36. disk = {
  37. root = {
  38. type = "disk";
  39. device = "/dev/disk/by-path/pci-0000:04:00.0-nvme-1";
  40. imageSize = "32G";
  41. content = {
  42. type = "gpt";
  43. partitions = {
  44. boot = {
  45. size = "1M";
  46. type = "EF02";
  47. };
  48. ESP = {
  49. size = "512M";
  50. type = "EF00";
  51. content = {
  52. type = "filesystem";
  53. format = "vfat";
  54. mountpoint = "/boot";
  55. };
  56. };
  57. root = {
  58. end = "-8G";
  59. content = {
  60. type = "filesystem";
  61. format = "ext4";
  62. mountpoint = "/";
  63. };
  64. };
  65. swap = {
  66. size = "100%";
  67. content = {
  68. type = "swap";
  69. randomEncryption = true;
  70. resumeDevice = false;
  71. };
  72. };
  73. };
  74. };
  75. };
  76. };
  77. };
  78. }