about summary refs log tree commit diff
path: root/configurations
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-09-14 23:25:01 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-14 23:25:01 +0300
commitd4a517f4b4ce067702248fdc944dca3f20df7791 (patch)
treec623589872698936620b81dc89da75cdbb8933f8 /configurations
parent2022-09-14 (diff)
2022-09-14
Diffstat (limited to '')
-rw-r--r--configurations/manwe/default.nix11
-rw-r--r--configurations/melian/default.nix5
-rw-r--r--configurations/varda/default.nix5
-rw-r--r--configurations/yavanna/default.nix5
4 files changed, 25 insertions, 1 deletions
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;
+  };
 }

Consider giving Nix/NixOS a try! <3