feat: optimize ram
This commit is contained in:
parent
62af141a22
commit
14ad9151a5
2 changed files with 7 additions and 0 deletions
|
|
@ -364,6 +364,11 @@
|
|||
services.irqbalance.enable = true;
|
||||
services.earlyoom.enable = true;
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
priority = 100;
|
||||
};
|
||||
|
||||
# Power management for laptop
|
||||
services.logind = {
|
||||
settings = {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/dfaa8624-c14f-4a72-8c5a-193d8294e5cb";
|
||||
fsType = "ext4";
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
|
|
@ -39,6 +40,7 @@
|
|||
swapDevices = [
|
||||
{
|
||||
device = "/dev/disk/by-uuid/bd8d2630-7c9b-4ec1-8a00-b1a801003732";
|
||||
priority = -10;
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue