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
This commit is contained in:
Théophane Hufschmitt
2022-09-24 12:11:26 +02:00
committed by GitHub
parent cacfc32ee2
commit 1a5d094be7
+1 -1
View File
@@ -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;
}
}