From ba570ec51ae774427c4e87afff3b3e748290878b Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Thu, 7 Apr 2022 12:26:56 -0400 Subject: [PATCH] Swap for NAS --- machines/storage/s0/hardware-configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/machines/storage/s0/hardware-configuration.nix b/machines/storage/s0/hardware-configuration.nix index d2858c9..650afe2 100644 --- a/machines/storage/s0/hardware-configuration.nix +++ b/machines/storage/s0/hardware-configuration.nix @@ -33,7 +33,12 @@ fsType = "vfat"; }; - swapDevices = [ ]; + swapDevices = [ + { + device = "/dev/mmcblk1p2"; + randomEncryption.enable = true; + } + ]; # The global useDHCP flag is deprecated, therefore explicitly set to false here. # Per-interface useDHCP will be mandatory in the future, so this generated config