From cd2a501f87b320a5edffd0357d9bb6e73e4fa944 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 2 Jun 2021 15:29:22 +0200 Subject: zram: init --- common/default.nix | 1 + common/zram.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 common/zram.nix (limited to 'common') diff --git a/common/default.nix b/common/default.nix index d4e2e39..2d3b33c 100644 --- a/common/default.nix +++ b/common/default.nix @@ -11,6 +11,7 @@ inputs: (import ./theme.nix inputs) (import ./tinc.nix inputs) (import ./vim.nix inputs) + (import ./zram.nix inputs) ]; nixpkgs.overlays = [ 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 @@ +inputs: + +{ ... }: + +{ + zramSwap = { + enable = true; + algorithm = "zstd"; + memoryPercent = 50; + }; +} -- cgit v1.2.3