New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/34398#issuecomment-986389904 Comment: Note: this allows to use one of the standard mirrors since it expects the directory layout for different archs to be the same as the main repo. Implementing this would need more variables and IMO it would be a mess. For more fine-grained control of the repos without disturbing the git worktree my suggestion would be to postpone the block ``` if [ -d $XBPS_DISTDIR/etc/xbps.d/custom ]; then mkdir -p $confdir $crossconfdir cp -f $XBPS_DISTDIR/etc/xbps.d/custom/*.conf $confdir cp -f $XBPS_DISTDIR/etc/xbps.d/custom/*.conf $crossconfdir fi ``` to later, right before the line `# Copy xbps repository keys to the masterdir.` In this way the all the conf files (`20-repository-remote.conf`, etc) will be generated first, and then we get a chance to overwrite them with custom files. Right now is the other way around and there's no way to eliminate the configuration in these files.