mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
nix flake check: Use read-only mode if we're not building
This commit is contained in:
parent
0e32b32fa3
commit
a9d3524e1f
1 changed files with 2 additions and 0 deletions
|
@ -259,6 +259,8 @@ struct CmdFlakeCheck : FlakeCommand, MixJSON
|
|||
|
||||
void run(nix::ref<nix::Store> store) override
|
||||
{
|
||||
settings.readOnlyMode = !build;
|
||||
|
||||
auto state = getEvalState();
|
||||
auto flake = resolveFlake();
|
||||
|
||||
|
|
Loading…
Reference in a new issue