aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorAlexander Bantyev <balsoft@balsoft.ru>2021-07-01 17:54:22 +0300
committerAlexander Bantyev <balsoft@balsoft.ru>2021-07-01 17:54:22 +0300
commite756a59c72e3e793ed01dec04749fa356f263315 (patch)
tree0109e35dd4ec3afca32629b9cfb8bf3e0d8789d2 /src/nix
parentef1e7ab840eaa50da29ddde7bf990a1ff6a8b185 (diff)
fixup! flake.nixConfig: fix flake-registry config settings
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/flake.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index 64fcfc000..9055b07eb 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -84,6 +84,7 @@ struct CmdFlakeUpdate : FlakeCommand
lockFlags.recreateLockFile = true;
lockFlags.writeLockFile = true;
+ lockFlags.applyNixConfig = true;
lockFlake();
}
@@ -114,6 +115,7 @@ struct CmdFlakeLock : FlakeCommand
settings.tarballTtl = 0;
lockFlags.writeLockFile = true;
+ lockFlags.applyNixConfig = true;
lockFlake();
}
@@ -270,6 +272,8 @@ struct CmdFlakeCheck : FlakeCommand
settings.readOnlyMode = !build;
auto state = getEvalState();
+
+ lockFlags.applyNixConfig = true;
auto flake = lockFlake();
bool hasErrors = false;