summaryrefslogtreecommitdiffstats
path: root/nixos/modules/zram.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/zram.nix')
-rw-r--r--nixos/modules/zram.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/zram.nix b/nixos/modules/zram.nix
new file mode 100644
index 0000000..33c9e07
--- /dev/null
+++ b/nixos/modules/zram.nix
@@ -0,0 +1,8 @@
+{
+ zramSwap = {
+ enable = true;
+ algorithm = "lz4";
+ memoryPercent = 100;
+ priority = 999;
+ };
+}