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 integer
Default
null
Example
2048
declared in: nixos/modules/config/swap.nixView source on NixOS/nixpkgs →