Add flexo configuration

This commit is contained in:
Marko Korhonen 2023-05-08 18:06:57 +03:00
parent 0a21e02625
commit 955020d9f4
2 changed files with 32 additions and 0 deletions

View file

@ -159,6 +159,10 @@ dst = "/etc/sudoers.d/pacman"
src = "etc/doas.conf" src = "etc/doas.conf"
dst = "/etc/doas.conf" dst = "/etc/doas.conf"
[dotfiles."f_flexo.toml"]
src = "etc/flexo/flexo.toml"
dst = "/etc/flexo/flexo.toml"
[profiles.Network] [profiles.Network]
dotfiles = ["d_network", "f_networkd.conf"] dotfiles = ["d_network", "f_networkd.conf"]
@ -192,6 +196,7 @@ dotfiles = [
"f_system.conf", "f_system.conf",
"f_timesyncd.conf", "f_timesyncd.conf",
"f_welcomemessage.conf", "f_welcomemessage.conf",
"f_flexo.toml",
] ]
include = ["Locale", "Pacman", "Network"] include = ["Locale", "Pacman", "Network"]
@ -207,6 +212,7 @@ dotfiles = [
"f_mkinitcpio_linux-lts.preset", "f_mkinitcpio_linux-lts.preset",
"f_plymouthd.conf", "f_plymouthd.conf",
"f_sshd_config", "f_sshd_config",
"f_flexo.toml",
] ]
[profiles.Gondor] [profiles.Gondor]

26
root/etc/flexo/flexo.toml Normal file
View file

@ -0,0 +1,26 @@
cache_directory = "/var/cache/flexo/pkg"
connect_timeout = 3000
mirrorlist_fallback_file = "/var/cache/flexo/state/mirrorlist"
mirrorlist_latency_test_results_file = "/var/cache/flexo/state/latency_test_results.json"
listen_ip_address = "0.0.0.0"
port = 7878
mirror_selection_method = "auto"
mirrors_predefined = []
num_versions_retain = 3
[mirrors_auto]
mirrors_status_json_endpoint = "https://archlinux.org/mirrors/status/json/"
mirrors_status_json_endpoint_fallbacks = [
"https://raw.githubusercontent.com/nroi/archlinux-mirrors-status-fallback/main/mirrorlist.json",
]
mirrors_blacklist = []
https_required = true
ipv4 = true
ipv6 = false
max_score = 2.5
num_mirrors = 8
mirrors_random_or_sort = "sort"
timeout = 350
refresh_latency_tests_after = "8 days"
allowed_countries = []