Is it possible to hibernate with swap-file?

Can also confirm, got hibernation working with this config on 24.11:

  boot.initrd.systemd.enable = true;
  swapDevices = [{
    device = "/var/lib/swapfile";
    size = 32 * 1024;
  }];