Make the flake options work when using the daemon

When setting flake-local options (with the `nixConfig` field), forward
these options to the daemon in case we’re using one.

This is necessary in particular for options like `binary-caches` or
`post-build-hook` to make sense.

Fix <https://github.com/NixOS/nix/commit/343239fc8a1993f707a990c2cd54a41f1fa3de99#r44356843>
This commit is contained in:
regnat
2021-11-05 16:19:16 +01:00
parent 7d6017b7a9
commit 1f3c3a3785
6 changed files with 48 additions and 1 deletions
+1 -1
View File
@@ -307,7 +307,7 @@ LockedFlake lockFlake(
if (lockFlags.applyNixConfig) {
flake.config.apply();
// FIXME: send new config to the daemon.
state.store->setOptions();
}
try {