diff --git a/services/baremetal-builder/default.nix b/services/baremetal-builder/default.nix index 7f3ac4d..7f57d4d 100644 --- a/services/baremetal-builder/default.nix +++ b/services/baremetal-builder/default.nix @@ -79,7 +79,7 @@ in options = [ "fmask=0022" "dmask=0022" ]; }; - swapDevices = [ + swapDevices = lib.optionals (!cfg.netboot) [ { device = "/swapfile"; size = 50 * 1024; # 50GiB