swapDevices.*.device

Path of the device or swap file.

Type
non-empty string
Example
"/dev/sda3"
Declared
<nixpkgs/nixos/modules/config/swap.nix>