swapDevices.*.size
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 integer- Default
null- Example
2048- Declared
- <nixpkgs/nixos/modules/config/swap.nix>