Update EDI layout on disk to put swap in LUKS

This commit is contained in:
Lillian Violet 2024-02-12 01:20:19 +01:00
parent ff1a6f6e28
commit c1c4641509

View file

@ -19,35 +19,29 @@
]; ];
}; };
}; };
encryptedSwap = { };
size = "20M"; luks = {
content = { size = "100%";
type = "swap"; content = {
randomEncryption = true; type = "luks";
name = "crypted";
# disable settings.keyFile if you want to use interactive password entry
#passwordFile = "/tmp/secret.key"; # Interactive
settings = {
allowDiscards = true;
#keyFile = "/tmp/secret.key";
}; };
}; #additionalKeyFiles = ["/tmp/additionalSecret.key"];
plainSwap = {
size = "4G";
content = { content = {
type = "swap"; swap = {
resumeDevice = true; # resume from hiberation from this device type = "swap";
}; size = "4G";
}; resumeDevice = true; # resume from hiberation from this device
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
# disable settings.keyFile if you want to use interactive password entry
#passwordFile = "/tmp/secret.key"; # Interactive
settings = {
allowDiscards = true;
#keyFile = "/tmp/secret.key";
}; };
#additionalKeyFiles = ["/tmp/additionalSecret.key"]; root = {
content = {
type = "filesystem"; type = "filesystem";
format = "bcachefs"; format = "bcachefs";
size = "100%";
mountpoint = "/"; mountpoint = "/";
}; };
}; };