feat(nix-compat/nixcpp): init nix.conf config parsing

This allows parsing files like `/etc/nix/nix.conf` into the `NixConfig`
struct.

Change-Id: I90b25f43c429dd56127500ff5068e83852adee13
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11888
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Brian Olsen <me@griff.name>
This commit is contained in:
Florian Klink 2024-06-28 12:14:30 +03:00 committed by flokli
parent 327d115f3f
commit 03c9917749
5 changed files with 250 additions and 0 deletions

View file

@ -0,0 +1,9 @@
//! Contains code parsing some of the Nixcpp config files etc.
//! left by Nix *on the local disk*.
//!
//! This is only for Nix' own state/config.
//!
//! More "standardized" protocols, like parts of the Nix HTTP Binary Cache
//! protocol live elsewhere.
pub mod conf;