Add required nix configuration to flake nixConfig
attribute
#31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An attempt at enabling the fuellabs nix cache via the flake's
nixConfig
attribute. The idea is to hopefully remove the need for adding cache info to the user's global config and ease usage slightly.From
nix help flake
:Currently this doesn't seem to be working - I'm running into the same issue described here NixOS/nix#6672. Either the user has to be part of the "trusted-users" set (i.e. is allowed to specify new substituters) or the fuellabs cache already has to be part of the global
trusted-substituters
list, otherwise the fuellabs cache is ignored.The
nixConfig
also allows you to specify the required "nix-command" and "flakes"experimental-features
. However, you already need to have these features to even start using the flake, so I've omitted them from the config as the user should always already have them.