1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 22:01:15 +02:00

Move flake-related flags into a separate class

Also, rename --dont-save-lock-file to --no-save-lock-file and change
noRegistries to useRegistries.
This commit is contained in:
Eelco Dolstra 2019-05-22 13:46:07 +02:00
parent bc0fb109a9
commit 70136a9bf4
4 changed files with 56 additions and 34 deletions

View file

@ -64,7 +64,7 @@ typedef std::vector<std::shared_ptr<FlakeRegistry>> Registries;
Path getUserRegistryPath();
enum HandleLockFile
enum HandleLockFile : unsigned int
{ AllPure // Everything is handled 100% purely
, TopRefUsesRegistries // The top FlakeRef uses the registries, apart from that, everything happens 100% purely
, UpdateLockFile // Update the existing lockfile and write it to file