-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup various issues with the nix.conf / nix.custom.conf split (#1393)
* fixup: no newline at the beginning of the config * Use extra-experimental-features instead of experimental-features * Move the user's ssl cert file into the custom config * Add a footer to the config So that we can place the "include" directive at the end of our standard config, allowing users to override our defaults. * Force `experimental-features` passed in `--extra-conf` to become `extra-experimental-features` Otherwise, users may accidentally override our `experimental-features` default of `nix-command` and `flakes`. If a user truly wanted to override this, they can manually modify the `nix.conf` / `nix.custom.conf` after the install completes. * Temporarily write trusted-users specified in `--extra-conf` to nix.conf _AND_ nix.custom.conf Cachix relies on the presence of this setting in the system `/etc/nix/nix.conf` so that it can provide users with a helpful error if `cachix use`ing a cache would not actually work for them (because only trusted users can modify the trusted caches and trusted cache signing keys in their user-specific configuration). * Test trusted-user, experimental-features changes * fixup: spacing, naming nits --------- Co-authored-by: Graham Christensen <[email protected]>
- Loading branch information
Showing
3 changed files
with
329 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.