mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09:07 +01:00
desktop, laptop, srv-core: Enable discards on the swap partition
This commit is contained in:
parent
7f6a6772dd
commit
97e5601cf2
3 changed files with 6 additions and 1 deletions
|
|
@ -45,6 +45,7 @@
|
||||||
size = "20G";
|
size = "20G";
|
||||||
content = {
|
content = {
|
||||||
type = "swap";
|
type = "swap";
|
||||||
|
discardPolicy = "both";
|
||||||
resumeDevice = true;
|
resumeDevice = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@
|
||||||
size = "20G";
|
size = "20G";
|
||||||
content = {
|
content = {
|
||||||
type = "swap";
|
type = "swap";
|
||||||
|
discardPolicy = "both";
|
||||||
resumeDevice = true;
|
resumeDevice = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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%";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue