Do you Happen to use lix? I had the same issue and updating lix to the latest version helped.
Related issue: #580 - nixos-option build failure on lix 2.91.0 - lix-project/lix - Lix Systems
Do you Happen to use lix? I had the same issue and updating lix to the latest version helped.
Related issue: #580 - nixos-option build failure on lix 2.91.0 - lix-project/lix - Lix Systems