This PR narrows the scope of the Guix environments to include only the minimum dependencies required for specific tasks, namely building and codesigning.
The second commit applies this same principle. It represents a step toward resolving #29914, executing on this proposed plan of action.
Based on #34944.