SanyaRamzik

disco-flake

Oct 29th, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. {
  2. disko.devices = {
  3. disk = {
  4. my-disk = {
  5. device = "/dev/sda";
  6. type = "disk";
  7. content = {
  8. type = "gpt";
  9. partitions = {
  10. ESP = {
  11. type = "EF00";
  12. size = "512M";
  13. content = {
  14. type = "filesystem";
  15. format = "vfat";
  16. mountpoint = "/boot/efi";
  17. };
  18. };
  19.  
  20. swap = {
  21. size = "8G";
  22. content = {
  23. type = "swap";
  24. resumeDevice = true;
  25. };
  26. };
  27.  
  28. root = {
  29. size = "100%";
  30. content = {
  31. type = "btrfs";
  32. extraArgs = [ "-f" ];
  33. subvolumes = {
  34. "/rootfs" = {
  35. mountpoint = "/";
  36. };
  37. "/home" = {
  38. mountOptions = [ "compress=zstd" ];
  39. mountpoint = "/home";
  40. };
  41. "/nix" = {
  42. mountOptions = [ "compress=zstd" "noatime" ];
  43. mountpoint = "/nix";
  44. };
  45. };
  46.  
  47. mountpoint = "/";
  48. };
  49. };
  50. };
  51. };
  52. };
  53. };
  54. };
  55. }
Advertisement
Add Comment
Please, Sign In to add comment