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.

47 lines
1.1 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year 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. extraArgs = [ "-f" ];
  29. };
  30. }
  31. {
  32. name = "swap";
  33. start = "-4G";
  34. end = "100%";
  35. part-type = "primary";
  36. fs-type = "linux-swap";
  37. content = {
  38. type = "swap";
  39. randomEncryption = true;
  40. extraArgs = [ "-f" ];
  41. };
  42. }
  43. ];
  44. };
  45. };
  46. };
  47. }