From 3d0f4cebc0fb97e46bd9fbea7820ac1568d9aa68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sat, 14 May 2022 18:11:19 +0200 Subject: [PATCH] feat(rpi4): add swapfile --- hardware/rpi4.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hardware/rpi4.nix b/hardware/rpi4.nix index 66f8994..46325c4 100644 --- a/hardware/rpi4.nix +++ b/hardware/rpi4.nix @@ -31,7 +31,10 @@ options = [ "subvol=@snapshots" "compress-force=zstd" "noatime" ]; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/swapfile"; + size = 4096; + }]; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; }