From eb279504b22e1d7db7ffb1e700a8127b039935f9 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 18 Aug 2022 19:17:14 +0200 Subject: [PATCH] adsb-antenna: Add swapfile --- hardware/hosts/adsb-antenna.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hardware/hosts/adsb-antenna.nix b/hardware/hosts/adsb-antenna.nix index 5f98034..89f4e65 100644 --- a/hardware/hosts/adsb-antenna.nix +++ b/hardware/hosts/adsb-antenna.nix @@ -19,7 +19,12 @@ fsType = "ext4"; }; - swapDevices = [ ]; + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = 2048; + } + ]; networking.useDHCP = lib.mkDefault true; # networking.interfaces.eth0.useDHCP = lib.mkDefault true;