A simple parser for the Nix configuration file format.
Based off of https://github.com/NixOS/nix/blob/0079d2943702a7a7fbdd88c0f9a5ad677c334aa8/src/libutil/config.cc#L80-L138.
```rust use std::error::Error;
fn main() -> Result<(), Box
let nix_conf = nix_config_parser::NixConfig::parse_file(&std::path::Path::new("nix.conf"))?;
assert_eq!(
nix_conf.settings().get(&"experimental-features".into()).unwrap(),
&"flakes nix-command".into()
);
assert_eq!(nix_conf.settings().get(&"warn-dirty".into()).unwrap(), &"false".into());
std::fs::remove_file("nix.conf")?;
Ok(())
} ```
```rust use std::error::Error;
fn main() -> Result<(), Box
assert_eq!(
nix_conf.settings().get(&"experimental-features".into()).unwrap(),
&"flakes nix-command".into()
);
Ok(())
} ```