From d4a517f4b4ce067702248fdc944dca3f20df7791 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 14 Sep 2022 23:25:01 +0300 Subject: 2022-09-14 --- configurations/manwe/default.nix | 11 ++++++++++- configurations/melian/default.nix | 5 +++++ configurations/varda/default.nix | 5 +++++ configurations/yavanna/default.nix | 5 +++++ 4 files changed, 25 insertions(+), 1 deletion(-) (limited to 'configurations') diff --git a/configurations/manwe/default.nix b/configurations/manwe/default.nix index 2599d78..47a2040 100644 --- a/configurations/manwe/default.nix +++ b/configurations/manwe/default.nix @@ -93,5 +93,14 @@ with lib; { }; }; - swapDevices = [{device = "/dev/sda3";}]; + swapDevices = [ + { + device = "/dev/sda3"; + } + ]; + + zramSwap = { + enable = true; + memoryPercent = 25; + }; } diff --git a/configurations/melian/default.nix b/configurations/melian/default.nix index 94e799e..08cbc8c 100644 --- a/configurations/melian/default.nix +++ b/configurations/melian/default.nix @@ -60,6 +60,11 @@ with lib; { } ]; + zramSwap = { + enable = true; + memoryPercent = 25; + }; + boot = { kernelPackages = mkForce pkgs.linuxPackages_xanmod_latest; diff --git a/configurations/varda/default.nix b/configurations/varda/default.nix index 7efeb61..c0789f5 100644 --- a/configurations/varda/default.nix +++ b/configurations/varda/default.nix @@ -77,4 +77,9 @@ with lib; { size = 4 * 1024; } ]; + + zramSwap = { + enable = true; + memoryPercent = 25; + }; } diff --git a/configurations/yavanna/default.nix b/configurations/yavanna/default.nix index d390e40..aa3118e 100644 --- a/configurations/yavanna/default.nix +++ b/configurations/yavanna/default.nix @@ -68,4 +68,9 @@ with lib; { size = 4 * 1024; } ]; + + zramSwap = { + enable = true; + memoryPercent = 25; + }; } -- cgit 1.4.1