From 41ed408c23b6d00c94b96049024a4945f9ef0ecc Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Wed, 8 Apr 2026 22:14:25 +0200 Subject: [PATCH] leonard: add swapfile --- hosts/leonard/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/leonard/hardware-configuration.nix b/hosts/leonard/hardware-configuration.nix index 4847b2f..79278a2 100644 --- a/hosts/leonard/hardware-configuration.nix +++ b/hosts/leonard/hardware-configuration.nix @@ -15,7 +15,10 @@ fsType = "ext4"; }; - swapDevices = [ ]; # TODO + swapDevices = [ { + device = "/swapfile"; + size = 4*1024; + } ]; networking.useDHCP = lib.mkDefault false; # networking.interfaces.ens18.useDHCP = lib.mkDefault true;