aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bantyev <balsoft@balsoft.ru>2021-08-07 14:42:59 +0300
committerAlexander Bantyev <balsoft@balsoft.ru>2021-08-07 14:42:59 +0300
commit54c580b71ff4288b4746c2d8182771d1dd8f0a21 (patch)
tree53d0579fca0eb39be1333bae38879bcabb521bbd
parente277c0c479d58bcd0f55e71ec9ebe43a6161a1d4 (diff)
Whitelist nixConfig.flake-registry
flake-registry should be safe to set to an aribtrary value, since it is identical to just setting `inputs`.
-rw-r--r--src/libexpr/flake/config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/flake/config.cc b/src/libexpr/flake/config.cc
index c8a5a319f..41b6f78ed 100644
--- a/src/libexpr/flake/config.cc
+++ b/src/libexpr/flake/config.cc
@@ -29,7 +29,7 @@ static void writeTrustedList(const TrustedList & trustedList)
void ConfigFile::apply()
{
- std::set<std::string> whitelist{"bash-prompt", "bash-prompt-suffix"};
+ std::set<std::string> whitelist{"bash-prompt", "bash-prompt-suffix", "flake-registry"};
for (auto & [name, value] : settings) {