diff --git a/flake.nix b/flake.nix index 60ffee5..770d811 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,7 @@ ./hosts/laptop-nixos-1/configuration.nix ./hosts/laptop-nixos-1/hardware-configuration.nix ./swap/16G.nix + ./swap/zswap.nix ]; }; }; diff --git a/swap/zswap.nix b/swap/zswap.nix new file mode 100644 index 0000000..413ceb2 --- /dev/null +++ b/swap/zswap.nix @@ -0,0 +1,8 @@ +{ + boot.kernelParams = [ + "zswap.enabled=1" + "zswap.compressor=zstd" + "zswap.zpool=zsmalloc" + "zswap.max_poool_percent=30" + ] +}