From dfb3ff9ccf36fa4f5ac51ad18f5c18270e39d6f3 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 19 Nov 2024 22:43:26 +0200 Subject: Add swap file to hardware config --- hosts/laptop-nixos/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/laptop-nixos/hardware-configuration.nix b/hosts/laptop-nixos/hardware-configuration.nix index f8cb10a..ac755f7 100644 --- a/hosts/laptop-nixos/hardware-configuration.nix +++ b/hosts/laptop-nixos/hardware-configuration.nix @@ -24,7 +24,10 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ ]; + swapDevices = [ { + device = "/var/lib/swapfile"; + size = 16*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 -- cgit v1.3.1