aboutsummaryrefslogtreecommitdiff
path: root/hosts/sol
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-03-08 09:43:09 -0500
committertdback <tyler@tdback.net>2025-03-08 09:43:09 -0500
commitefde56237c8cdce3b801beee44258bdb27776acb (patch)
treee4a6e1a859aa230310d32c03262110b2722fe2b8 /hosts/sol
parent14b6877ed989ec65eb95f2db5ef5927ee46b1300 (diff)
sol: add swapfile to (hopefully) help prevent calling the OOM killerHEADmain
Diffstat (limited to 'hosts/sol')
-rw-r--r--hosts/sol/filesystems/default.nix8
1 files changed, 7 insertions, 1 deletions
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,4 +1,8 @@
{
+ lib,
+ ...
+}:
+{
fileSystems."/" = {
device = "/dev/disk/by-uuid/5ac7df5a-5908-4b6a-b982-88c34775205a";
fsType = "ext4";
@@ -13,5 +17,7 @@
];
};
- swapDevices = [ ];
+ swapDevices = lib.singleton {
+ device = "/.swapfile";
+ };
}