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.

67 lines
1.3 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. { modulesPath, ... }:
  2. {
  3. imports = [
  4. "${modulesPath}/installer/scan/not-detected.nix"
  5. ];
  6. nixpkgs.hostPlatform = "x86_64-linux";
  7. boot = {
  8. initrd.availableKernelModules = [
  9. "xhci_pci"
  10. "ahci"
  11. "usb_storage"
  12. "usbhid"
  13. "sd_mod"
  14. "sr_mod"
  15. ];
  16. kernelModules = [ "kvm-intel" ];
  17. loader = {
  18. systemd-boot.enable = true;
  19. efi.canTouchEfiVariables = true;
  20. };
  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:00:17.0-ata-8.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. };
  45. };
  46. root = {
  47. size = "100%";
  48. content = {
  49. type = "filesystem";
  50. format = "ext4";
  51. mountpoint = "/";
  52. };
  53. };
  54. };
  55. };
  56. };
  57. };
  58. };
  59. }