functional2: improve NixSettings #846
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#846
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
Currently, the
NixSettingsclass creates a string config which the environment variable is set to.This creates problems with current tests from the
functionaltest-suit, which require default values and/or the existence of thenix.conffile.Additionally the amount of options to set for the config is very limited, e.g. not allowing
extra-deprecated-featuresturning thesandboxon or off etc.Describe the solution you'd like
The implementation of
NixSettingsshould be overhauled to write to thenix.conffile instead of an environment variable and to support more settings.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
see
cat > "$NIX_CONF_DIR"/nix.conf <<EOFbuild-users-group =keep-derivations = falsesandbox = falseexperimental-features = nix-commandgc-reserved-space = 0substituters =flake-registry = $TEST_ROOT/registry.jsonshow-trace = trueinclude nix.conf.extratrusted-users = $(whoami || id -u)EOFcat > "$NIX_CONF_DIR"/nix.conf.extra <<EOFfsync-metadata = falseextra-experimental-features = flakes!include nix.conf.extra.not-thereEOFfor the defaults provided by
functional(not all of them are sensible)having played around, trying to get the
why-dependstest to working, i'd like to see the following defaults:update:
sandbox-pathsshould be left untouched,extra-sandbox-pathsshould be initalized with the values being present inenv.pathThis issue was mentioned on Gerrit on the following CLs:
yeah, it should probably be a serializer. idk if it needs to be written into a file, especially, since the env-var does work and has the exact same format. you can if you want, it does no harm.