MyNixOS website logo
option

swapDevices.*.discardPolicy

Specify the discard policy for the swap device. If "once", then the whole swap space is discarded at swapon invocation. If "pages", asynchronous discard on freed pages is performed, before returning to the available pages pool. With "both", both policies are activated. See swapon(8) for more information.

Declarations
Type
null or one of "once", "pages", "both"
Default
null
Example
"once"