Browse Source

all: modernize disk generation

main
Dustin Frisch 6 months ago
parent
commit
e4b52ab26e
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 3
      machines/manager/disk.nix
  2. 3
      machines/node/disk.nix

3
machines/manager/disk.nix

@ -7,6 +7,7 @@
type = "gpt"; type = "gpt";
partitions = { partitions = {
ESP = { ESP = {
label = "ESP";
start = "1MiB"; start = "1MiB";
size = "100MiB"; size = "100MiB";
type = "EF00"; type = "EF00";
@ -17,6 +18,7 @@
}; };
}; };
root = { root = {
label = "primary";
start = "100MiB"; start = "100MiB";
end = "-4GB"; end = "-4GB";
content = { content = {
@ -26,6 +28,7 @@
}; };
}; };
swap = { swap = {
label = "swap";
end = "100%"; end = "100%";
content = { content = {
type = "swap"; type = "swap";

3
machines/node/disk.nix

@ -7,11 +7,13 @@
type = "gpt"; type = "gpt";
partitions = { partitions = {
boot = { boot = {
label = "ESP";
size = "1M"; size = "1M";
type = "EF02"; type = "EF02";
priority = 1; priority = 1;
}; };
root = { root = {
label = "root";
end = "-4GB"; end = "-4GB";
content = { content = {
type = "filesystem"; type = "filesystem";
@ -21,6 +23,7 @@
}; };
}; };
swap = { swap = {
label = "swap";
size = "100%"; size = "100%";
content = { content = {
type = "swap"; type = "swap";

Loading…
Cancel
Save