aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-08 12:35:08 +0200
committerGitHub <noreply@github.com>2021-07-08 12:35:08 +0200
commit156666de3da4a754582259bcc2fe68018ed2d3a5 (patch)
tree6caef4f76ba34c2fe0a3981055f813af9af4e57c /src/nix
parent6060ea1b0e4346a632b218d74b68ab18c20e100e (diff)
parente756a59c72e3e793ed01dec04749fa356f263315 (diff)
Merge pull request #4969 from serokell/balsoft/fix-nixConfig-flake-registry
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;