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.

45 lines
1.0 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:00:11.0-ata-1";
  5. type = "disk";
  6. content = {
  7. type = "table";
  8. format = "gpt";
  9. partitions = [
  10. {
  11. name = "boot";
  12. start = "0";
  13. end = "1M";
  14. part-type = "primary";
  15. flags = [ "bios_grub" ];
  16. }
  17. {
  18. name = "root";
  19. start = "1MB";
  20. end = "-4GB";
  21. part-type = "primary";
  22. fs-type = "btrfs";
  23. bootable = true;
  24. content = {
  25. type = "filesystem";
  26. format = "btrfs";
  27. mountpoint = "/";
  28. };
  29. }
  30. {
  31. name = "swap";
  32. start = "-4G";
  33. end = "100%";
  34. part-type = "primary";
  35. fs-type = "linux-swap";
  36. content = {
  37. type = "swap";
  38. randomEncryption = true;
  39. };
  40. }
  41. ];
  42. };
  43. };
  44. };
  45. }