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:
parent
327d115f3f
commit
03c9917749
5 changed files with 250 additions and 0 deletions
20
tvix/nix-compat/testdata/nix.conf
vendored
Normal file
20
tvix/nix-compat/testdata/nix.conf
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
# WARNING: this file is generated from the nix.* options in
|
||||
# your NixOS configuration, typically
|
||||
# /etc/nixos/configuration.nix. Do not edit it!
|
||||
allowed-users = *
|
||||
auto-optimise-store = false
|
||||
cores = 0
|
||||
max-jobs = 8
|
||||
require-sigs = true
|
||||
sandbox = true
|
||||
sandbox-fallback = false
|
||||
substituters = https://nix-community.cachix.org https://cache.nixos.org/
|
||||
system-features = nixos-test benchmark big-parallel kvm
|
||||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
|
||||
trusted-substituters =
|
||||
trusted-users = flokli
|
||||
extra-platforms = aarch64-linux i686-linux
|
||||
extra-sandbox-paths = /run/binfmt /nix/store/swwyxyqpazzvbwx8bv40z7ih144q841f-qemu-aarch64-binfmt-P-x86_64-unknown-linux-musl
|
||||
experimental-features = nix-command
|
||||
|
||||
builders-use-substitutes = true
|
Loading…
Add table
Add a link
Reference in a new issue