NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
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.

50 lines
1.2 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. {
  2. disko.devices = {
  3. disk."system" = {
  4. device = "/dev/disk/by-path/pci-0000:01:00.0-scsi-0:1:1:0";
  5. type = "disk";
  6. content = {
  7. type = "table";
  8. format = "gpt";
  9. partitions = [
  10. {
  11. name = "root";
  12. start = "100MiB";
  13. end = "-4GB";
  14. part-type = "primary";
  15. fs-type = "btrfs";
  16. bootable = true;
  17. content = {
  18. type = "filesystem";
  19. format = "btrfs";
  20. mountpoint = "/";
  21. };
  22. }
  23. {
  24. name = "swap";
  25. start = "-4G";
  26. end = "100%";
  27. part-type = "primary";
  28. fs-type = "linux-swap";
  29. content = {
  30. type = "swap";
  31. randomEncryption = true;
  32. };
  33. }
  34. {
  35. name = "ESP";
  36. start = "1MiB";
  37. end = "100MiB";
  38. fs-type = "fat32";
  39. bootable = true;
  40. content = {
  41. type = "filesystem";
  42. format = "vfat";
  43. mountpoint = "/boot";
  44. };
  45. }
  46. ];
  47. };
  48. };
  49. };
  50. }