From 92f794322101a458de369dd0cef2e5d5d7fa4f38 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Wed, 8 Apr 2026 22:17:03 +0200 Subject: [PATCH] morn: add swapfile --- hosts/morn/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/morn/hardware-configuration.nix b/hosts/morn/hardware-configuration.nix index 6d8218e..19d0d7f 100644 --- a/hosts/morn/hardware-configuration.nix +++ b/hosts/morn/hardware-configuration.nix @@ -24,7 +24,10 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ ]; + swapDevices = [ { + device = "/swapfile"; + size = 4*1024; + } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's