From 71be9bb01bed6c542e270258733e4a4acb1ead5f Mon Sep 17 00:00:00 2001 From: sajenim Date: Thu, 1 Jun 2023 23:01:44 +0800 Subject: [PATCH] enable swap --- nixos/lavender/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/lavender/hardware-configuration.nix b/nixos/lavender/hardware-configuration.nix index 10db576..ce5397f 100644 --- a/nixos/lavender/hardware-configuration.nix +++ b/nixos/lavender/hardware-configuration.nix @@ -23,7 +23,10 @@ fsType = "ext4"; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/var/lib/swapfile"; + size = 2048; + }]; # 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