desktop, laptop, srv-core: Enable discards on the swap partition

This commit is contained in:
SebastianStork 2026-03-08 12:45:49 +01:00
parent 7f6a6772dd
commit 97e5601cf2
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI
3 changed files with 6 additions and 1 deletions

View file

@ -45,6 +45,7 @@
size = "20G"; size = "20G";
content = { content = {
type = "swap"; type = "swap";
discardPolicy = "both";
resumeDevice = true; resumeDevice = true;
}; };
}; };

View file

@ -42,6 +42,7 @@
size = "20G"; size = "20G";
content = { content = {
type = "swap"; type = "swap";
discardPolicy = "both";
resumeDevice = true; resumeDevice = true;
}; };
}; };

View file

@ -16,7 +16,10 @@
partitions = { partitions = {
swap = { swap = {
size = "8G"; size = "8G";
content.type = "swap"; content = {
type = "swap";
discardPolicy = "both";
};
}; };
root = { root = {
size = "100%"; size = "100%";