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 = {
|
||||
size = "100%";
|
||||
|
@ -46,8 +33,15 @@
|
|||
};
|
||||
#additionalKeyFiles = ["/tmp/additionalSecret.key"];
|
||||
content = {
|
||||
swap = {
|
||||
type = "swap";
|
||||
size = "4G";
|
||||
resumeDevice = true; # resume from hiberation from this device
|
||||
};
|
||||
root = {
|
||||
type = "filesystem";
|
||||
format = "bcachefs";
|
||||
size = "100%";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue