From 95efe2cd3770331cb3c9326617aa9174dcf615a5 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Wed, 26 Oct 2022 15:01:55 -0300 Subject: [PATCH] add swap to rainbow --- hosts/rainbow.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/rainbow.nix b/hosts/rainbow.nix index 9778c9f..c5f3ab5 100644 --- a/hosts/rainbow.nix +++ b/hosts/rainbow.nix @@ -38,7 +38,10 @@ options = [ "subvol=@swap" ]; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/swap/swapfile"; + size = (1024 * 4); # RAM size + 2 GB + }]; # 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