summaryrefslogtreecommitdiffstats
path: root/common/zram.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/zram.nix')
-rw-r--r--common/zram.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/zram.nix b/common/zram.nix
new file mode 100644
index 0000000..7a16710
--- /dev/null
+++ b/common/zram.nix
@@ -0,0 +1,11 @@
1inputs:
2
3{ ... }:
4
5{
6 zramSwap = {
7 enable = true;
8 algorithm = "zstd";
9 memoryPercent = 50;
10 };
11}