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.

95 lines
2.1 KiB

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