fixup! flake.nixConfig: fix flake-registry config settings

This commit is contained in:
Alexander Bantyev
2021-07-01 17:54:22 +03:00
parent ef1e7ab840
commit e756a59c72
4 changed files with 15 additions and 3 deletions
+4 -2
View File
@@ -298,8 +298,10 @@ LockedFlake lockFlake(
auto flake = getFlake(state, topRef, lockFlags.useRegistries, flakeCache);
flake.config.apply();
// FIXME: send new config to the daemon.
if (lockFlags.applyNixConfig) {
flake.config.apply();
// FIXME: send new config to the daemon.
}
try {
+4
View File
@@ -104,6 +104,10 @@ struct LockFlags
references like 'nixpkgs'. */
bool useRegistries = true;
/* Whether to apply flake's nixConfig attribute to the configuration */
bool applyNixConfig = false;
/* Whether mutable flake references (i.e. those without a Git
revision or similar) without a corresponding lock are
allowed. Mutable flake references with a lock are always