From c6319de93fc3636da872372158859b676655e8f7 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 16 Mar 2024 19:26:20 -0400 Subject: [PATCH] modules: added zram_swap --- modules/zram_swap.nix | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 modules/zram_swap.nix diff --git a/modules/zram_swap.nix b/modules/zram_swap.nix new file mode 100644 index 00000000..897d67f2 --- /dev/null +++ b/modules/zram_swap.nix @@ -0,0 +1,6 @@ +{ config, pkgs, ... }: + +{ + zramSwap.enable = true; + zramSwap.memoryPercent = 25; +}