added swap
This commit is contained in:
parent
299f7ac111
commit
bfcbd8c6aa
1 changed files with 12 additions and 13 deletions
|
@ -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,19 +48,10 @@
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
crypt = {
|
store = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
type = "zfs";
|
||||||
type = "luks";
|
pool = "zstore";
|
||||||
name = "crypt";
|
|
||||||
passwordFile = "/tmp/secret.key";
|
|
||||||
settings = {
|
|
||||||
allowDiscards = true;
|
|
||||||
};
|
|
||||||
content = {
|
|
||||||
type = "zfs";
|
|
||||||
pool = "zstore";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue