added swap

This commit is contained in:
twoneis 2024-05-06 21:02:55 +02:00
parent 299f7ac111
commit bfcbd8c6aa

View file

@ -10,6 +10,7 @@
efi = { efi = {
size = "512M"; size = "512M";
type = "EF00"; type = "EF00";
priority = 0;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
@ -17,7 +18,7 @@
}; };
}; };
crypt = { crypt = {
size = "100%"; size = "-16G";
content = { content = {
type = "luks"; type = "luks";
name = "crypt"; name = "crypt";
@ -31,6 +32,13 @@
}; };
}; };
}; };
swap = {
size = "100%";
content = {
type = "swap";
resumeDevice = true;
};
};
}; };
}; };
}; };
@ -40,16 +48,8 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
crypt = { store = {
size = "100%"; size = "100%";
content = {
type = "luks";
name = "crypt";
passwordFile = "/tmp/secret.key";
settings = {
allowDiscards = true;
};
content = {
type = "zfs"; type = "zfs";
pool = "zstore"; pool = "zstore";
}; };
@ -58,7 +58,6 @@
}; };
}; };
}; };
};
zpool = { zpool = {
zroot = { zroot = {
type = "zpool"; type = "zpool";