diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-09-24 12:11:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 12:11:26 +0200 |
commit | 1a5d094be76468b5e32c866bbba34cd99521d042 (patch) | |
tree | 92af7c3cf802b52430cf5f4bdc5ec5e9b5fc2613 | |
parent | cacfc32ee22bacb6400796e47fd4dee41299b66a (diff) |
Mention `--accept-flake-config` in the related warning
Make sure that people who run Nix in non-interactive mode (and so don't have the possibility to interactively accept the individual flake configuration settings) are aware of this flag.
Fix #7086
-rw-r--r-- | src/libexpr/flake/config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/flake/config.cc b/src/libexpr/flake/config.cc index 3e9d264b4..6df95f1f0 100644 --- a/src/libexpr/flake/config.cc +++ b/src/libexpr/flake/config.cc @@ -68,7 +68,7 @@ void ConfigFile::apply() } } if (!trusted) { - warn("ignoring untrusted flake configuration setting '%s'", name); + warn("ignoring untrusted flake configuration setting '%s'.\nPass '%s' to trust it", name, "--accept-flake-config"); continue; } } |