From acec2505e429b94ac6e804f2220724b852f3430f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 10 Nov 2020 22:17:47 +0100 Subject: [PATCH] feat: add zramfs as swap --- systems/makanek/hardware-configuration.nix | 1 + systems/manakish/hardware-configuration.nix | 1 + systems/toum/hardware-configuration.nix | 5 +---- systems/wilde/hardware-configuration.nix | 8 +------- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/systems/makanek/hardware-configuration.nix b/systems/makanek/hardware-configuration.nix index 36d4e05..f2f557d 100644 --- a/systems/makanek/hardware-configuration.nix +++ b/systems/makanek/hardware-configuration.nix @@ -16,6 +16,7 @@ }; swapDevices = [ ]; + zramSwap.enable = true; nix.maxJobs = lib.mkDefault 2; } diff --git a/systems/manakish/hardware-configuration.nix b/systems/manakish/hardware-configuration.nix index b7b5385..b057864 100644 --- a/systems/manakish/hardware-configuration.nix +++ b/systems/manakish/hardware-configuration.nix @@ -26,6 +26,7 @@ }; swapDevices = [ ]; + zramSwap.enable = true; boot.loader.grub = { enable = true; diff --git a/systems/toum/hardware-configuration.nix b/systems/toum/hardware-configuration.nix index d64c103..c2cf0f2 100644 --- a/systems/toum/hardware-configuration.nix +++ b/systems/toum/hardware-configuration.nix @@ -9,8 +9,5 @@ }; }; - swapDevices = [{ - device = "/swapfile"; - size = 1024; - }]; + zramSwap.enable = true; } diff --git a/systems/wilde/hardware-configuration.nix b/systems/wilde/hardware-configuration.nix index ab390ca..131123f 100644 --- a/systems/wilde/hardware-configuration.nix +++ b/systems/wilde/hardware-configuration.nix @@ -18,13 +18,7 @@ fsType = "vfat"; }; - swapDevices = [ - { - device = "/swapfile"; - priority = 0; - size = 4096; - } - ]; + zramSwap.enable = true; nix.maxJobs = lib.mkDefault 4; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";