baremetal-builders: do not create swapfile on rootfs when netbooting

This commit is contained in:
Yureka 2024-08-03 18:10:59 +02:00
parent dd028656ac
commit 93822775a9

View file

@ -79,7 +79,7 @@ in
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
swapDevices = [ swapDevices = lib.optionals (!cfg.netboot) [
{ {
device = "/swapfile"; device = "/swapfile";
size = 50 * 1024; # 50GiB size = 50 * 1024; # 50GiB