From e68396459ecc5b04702117db5b24521b3a5014d3 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 19 Apr 2020 18:41:53 -0700 Subject: Add swap to my cloud server --- Biz/Cloud/hardware.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Biz/Cloud/hardware.nix b/Biz/Cloud/hardware.nix index 8c88cb7..458fd49 100644 --- a/Biz/Cloud/hardware.nix +++ b/Biz/Cloud/hardware.nix @@ -3,4 +3,7 @@ imports = [ ]; boot.loader.grub.device = "/dev/vda"; fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; }; + swapDevices = [ + { device = "/swapfile"; } # 4GB + ]; } -- cgit v1.2.3