swapDevices.*.size
NixOS option
If this option is set, ‘device’ is interpreted as the path of a swapfile that will be created automatically with the indicated size in MiB (1024×1024 bytes).
type: null or signed integerDefault
null
Example
declared in: nixos/modules/config/swap.nixView source on NixOS/nixpkgs →2048