Update EDI layout on disk to put swap in LUKS
This commit is contained in:
parent
ff1a6f6e28
commit
c1c4641509
|
@ -19,19 +19,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
encryptedSwap = {
|
|
||||||
size = "20M";
|
|
||||||
content = {
|
|
||||||
type = "swap";
|
|
||||||
randomEncryption = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
plainSwap = {
|
|
||||||
size = "4G";
|
|
||||||
content = {
|
|
||||||
type = "swap";
|
|
||||||
resumeDevice = true; # resume from hiberation from this device
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
luks = {
|
luks = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
|
@ -46,8 +33,15 @@
|
||||||
};
|
};
|
||||||
#additionalKeyFiles = ["/tmp/additionalSecret.key"];
|
#additionalKeyFiles = ["/tmp/additionalSecret.key"];
|
||||||
content = {
|
content = {
|
||||||
|
swap = {
|
||||||
|
type = "swap";
|
||||||
|
size = "4G";
|
||||||
|
resumeDevice = true; # resume from hiberation from this device
|
||||||
|
};
|
||||||
|
root = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "bcachefs";
|
format = "bcachefs";
|
||||||
|
size = "100%";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue