From 162d96179c7acca82ba9206838b94f60e6435396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sat, 5 Apr 2025 14:15:16 +0200 Subject: [PATCH] add harbor swapfile --- hosts/harbor/hardware-configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/harbor/hardware-configuration.nix b/hosts/harbor/hardware-configuration.nix index 809e0f7..f8bf724 100644 --- a/hosts/harbor/hardware-configuration.nix +++ b/hosts/harbor/hardware-configuration.nix @@ -28,7 +28,12 @@ options = ["fmask=0022" "dmask=0022"]; }; - swapDevices = []; + swapDevices = [ + { + device = "/.swapfile"; + size = 2 * 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