From efde56237c8cdce3b801beee44258bdb27776acb Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 8 Mar 2025 09:43:09 -0500 Subject: sol: add swapfile to (hopefully) help prevent calling the OOM killer --- hosts/sol/filesystems/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hosts/sol/filesystems') diff --git a/hosts/sol/filesystems/default.nix b/hosts/sol/filesystems/default.nix index e31b2e3..c6174bd 100644 --- a/hosts/sol/filesystems/default.nix +++ b/hosts/sol/filesystems/default.nix @@ -1,3 +1,7 @@ +{ + lib, + ... +}: { fileSystems."/" = { device = "/dev/disk/by-uuid/5ac7df5a-5908-4b6a-b982-88c34775205a"; @@ -13,5 +17,7 @@ ]; }; - swapDevices = [ ]; + swapDevices = lib.singleton { + device = "/.swapfile"; + }; } -- cgit v1.2.3