Add zswap
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
./hosts/laptop-nixos-1/configuration.nix
|
./hosts/laptop-nixos-1/configuration.nix
|
||||||
./hosts/laptop-nixos-1/hardware-configuration.nix
|
./hosts/laptop-nixos-1/hardware-configuration.nix
|
||||||
./swap/16G.nix
|
./swap/16G.nix
|
||||||
|
./swap/zswap.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
boot.kernelParams = [
|
||||||
|
"zswap.enabled=1"
|
||||||
|
"zswap.compressor=zstd"
|
||||||
|
"zswap.zpool=zsmalloc"
|
||||||
|
"zswap.max_poool_percent=30"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user