how do I persist this into pacman-mirrorlist.conf, sadly the documentation on the wiki/man page does not seem to list the full configuration options, and they do not appear to use the same case as the cli
$ man pacman-mirrors
Instructs pacman-mirrors to activate processing of API argu‐
-B, -S, --set-branch BRANCH
Permanent change branch, using stable, testing or unstable.
-p, --prefix PREFIX
Add a path prefix to pacman-mirrors file-handling eg. /mnt/in‐
stall or $mnt.
-P, --proto, --protocols PROTO [PROTO] ...
Write protocols to configuration, using all or http, https, ftp
Replace branch in mirrorlist.
-U, --url URL
Replace mirrorlist with supplied url.
This command will write https as the only protocol to pacman-mirrors.conf and exit
$ sudo pacman-mirrors --api --proto https -n
## Define protocols and priority
## separated by comma 'https,http' or 'http,https'
## ATM available protocols are: http, https, ftp
## Not specifying a protocol will ban the protocol from being used
## If a mirror has more than one protocol defined only the first is written to the mirrorlist
## Empty means all in reversed alphabetic order
Protocols = https
You cannot set a country list in pacman-mirrors.
The mirror pool is generated by using the --continent argument and saved in /var/lib/custom-mirrors.json and is never reset unless the user chooses to do so.
The pamac-mirrorlist.timer will recreate the mirrorlist once a week but as pamac is calling pacman-mirrors to do this - it will use the mirror pool defined by the user in custom-mirrors.json.