MyNixOS website logo
option

services.swapspace.installWrapper

This will add swapspace wrapped with the generated config, to environment.systemPackages.