swapDevices.*.label

Label of the device. Can be used instead of device.

Type
string
Example
"swap"
Declared
<nixpkgs/nixos/modules/config/swap.nix>