From c0b3feaa374954bb406e356b996e61ad88c4a607 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 12 Mar 2024 10:46:11 +1100 Subject: creep: add swap Contravenes guidance to avoid edits to hardware-configuration.nix --- hostnix/creep/hardware-configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hostnix/creep/hardware-configuration.nix b/hostnix/creep/hardware-configuration.nix index ed21088..0dce739 100644 --- a/hostnix/creep/hardware-configuration.nix +++ b/hostnix/creep/hardware-configuration.nix @@ -23,7 +23,11 @@ fsType = "vfat"; }; - swapDevices = [ ]; + swapDevices = [ { + device = "/var/lib/swap"; + size = 4 * 1024; + randomEncryption.enable = true; + } ]; # 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