Expand description
Provides structs to handle Pacstall’s configuration.
The configuration is first read from the config file located at
/etc/pacstall/config.toml
, then environment variables prefixed with
PACSTALL_
may override the configuration.
§Format
[settings]
jobs = 10
editor = "emacs"
[[repositories]]
name = "official"
url = "https://github.com/pacstall/pacstall-programs"
preference = 1
[[repositories]]
name = "third_party"
url = "https://github.com/user/third-party"
preference = 2
§Note
The default configuration is used if the config file is not found or is empty.
Structs§
- App
- Pacstall’s configuration.
- Config
- The extracted configuration.
- Repository
- The extracted
repositories
array of tables. - Settings
- The extracted
settings
table.