Open
Description
Problem
the documentation of nix_setting_get
currently contains "This function requires nix_libutil_init()
to be called". but it is nix_libstore_init
that calls loadConfFile
and populates the globalConfig
, which nix_setting_get
reads from. nix_libutil_init
only improves error messages in a certain case and calls sodium_init
.
Proposal
either
- calling
loadConfFile
should move intoinitLibUtil
or - the documentation of the documentation of
nix_setting_get
should require callingnix_libstore_init
andnix_setting_get
andnix_setting_set
then should probably move intolibstore
.
Checklist
- checked latest Nix manual (source)
- checked open documentation issues and pull requests for possible duplicates
Priorities
Add 👍 to issues you find important.