From d745e58d1fd41181b26d002cb3b1a9fabc59e1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 18 Jun 2022 17:50:20 +0100 Subject: [PATCH] add swap to skinny --- nixos/boxes/skinnyv/hardware-configuration.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nixos/boxes/skinnyv/hardware-configuration.nix b/nixos/boxes/skinnyv/hardware-configuration.nix index 35cfa310..833c333e 100644 --- a/nixos/boxes/skinnyv/hardware-configuration.nix +++ b/nixos/boxes/skinnyv/hardware-configuration.nix @@ -23,12 +23,17 @@ fsType = "vfat"; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/swapfile"; + size = 16 * 1024; + priority = 1; + }]; zramSwap = { enable = true; algorithm = "zstd"; - memoryPercent = 75; + memoryPercent = 25; + priority = 10; }; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";