meson-built nix seems to search for the config file in PREFIX/etc/nix.conf
instead of PREFIX/etc/nix/nix.conf
#231
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#231
Loading…
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?
This might be a self inflicted problem.
I did:
I observed:
outputs/out/etc/nix/nix.conf
is not being read, butoutputs/etc/nix.conf
was.This suggests to me that
nixConfDir
got haunted somehow. Commit06e11778b5
.Okay so this was slightly more of a rabbithole than expected. For this issue itself,
'NIX_CONF_DIR': sysconfdir,
just needs to be
sysconfdir / 'nix'
(will push a CL in a moment), but this is not actually enough to unfuck the nix.conf dir in general.sysconfdir
plays double duty. It determines the absolute path where Lix should look fornix.conf
, and also determines where shell completions are installed. For the Make buildsystem, package.nix sets sysconfdir to/etc
, so Lix looks there, but then overrides it specifically formake install
. If sysconfdir is set to$out/etc
then Lix will only ever look in/nix/store/longhashfor-lix/etc/nix.conf
.So these two need to be separate options in the build. lmao.
(Correction, not completions but the nix-daemon shell rc scripts)