kyra(hardening): ESP 1G->128M, LUKS2 volume and options hadrening

Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
s0me1newithhand7s 2026-05-03 15:29:57 +03:00
parent 14eea58fbb
commit 72def65f54

View file

@ -21,7 +21,7 @@
ESP = { ESP = {
name = "ESP"; name = "ESP";
size = "1024M"; size = "128M";
type = "EF00"; type = "EF00";
content = { content = {
type = "filesystem"; type = "filesystem";
@ -29,15 +29,27 @@
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = [ mountOptions = [
"umask=0077" "umask=0077"
"noexec"
"nosuid"
"nodev"
"ro"
]; ];
}; };
}; };
root = { luks = {
size = "100%"; size = "100%";
content = { content = {
type = "lvm_pv"; type = "luks";
vg = "pool"; name = "crypted";
settings = {
allowDiscards = true;
};
content = {
type = "lvm_pv";
vg = "pool";
};
}; };
}; };
}; };