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.

88 lines
1.7 KiB

1 week ago
1 week ago
4 days ago
1 week ago
4 days ago
1 week ago
1 week ago
1 week ago
4 days ago
1 week ago
4 days 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. 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. ];
  27. plymouth = {
  28. enable = true;
  29. theme = "bgrt";
  30. };
  31. };
  32. hardware.enableRedistributableFirmware = true;
  33. hardware.cpu.intel.updateMicrocode = true;
  34. disko.devices = {
  35. disk = {
  36. root = {
  37. type = "disk";
  38. device = "/dev/disk/by-path/pci-0000:04:00.0-nvme-1";
  39. imageSize = "32G";
  40. content = {
  41. type = "gpt";
  42. partitions = {
  43. boot = {
  44. size = "1M";
  45. type = "EF02";
  46. };
  47. ESP = {
  48. size = "512M";
  49. type = "EF00";
  50. content = {
  51. type = "filesystem";
  52. format = "vfat";
  53. mountpoint = "/boot";
  54. };
  55. };
  56. root = {
  57. end = "-8G";
  58. content = {
  59. type = "filesystem";
  60. format = "ext4";
  61. mountpoint = "/";
  62. };
  63. };
  64. swap = {
  65. size = "100%";
  66. content = {
  67. type = "swap";
  68. randomEncryption = true;
  69. resumeDevice = false;
  70. };
  71. };
  72. };
  73. };
  74. };
  75. };
  76. };
  77. }