Loading
nixos/top-level: wire up cutoffPackages for replaceDependencies
Move replaceRuntimeDependencies to the replaceDependencies namespace, where the structure is more consistent with the replaceDependencies function. This makes space for wiring up cutoffPackages as an option too. By default, the system's initrd is excluded. The replacement process does not work properly anyway due to the structure of the initrd (the files being copied into it, and it being compressed). In the worst case (which has been observed to actually occur in practice), a store path makes it into the incompressible parts of the archive, checksums are broken, and the system won't boot.