diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-01 22:56:50 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-04-01 22:56:50 +0200 |
commit | 77ffaea4fa12f0525758d6c4a3a3bd074906978d (patch) | |
tree | ca05219e61562287445e9dd8892f6a52067101a5 /src/libfetchers/registry.hh | |
parent | 36c34c3b1fff93139a4016845711bcc05ebb7cf5 (diff) |
Add a system-wide flake registry /etc/nix/registry.json
One application for this is pinning the 'nixpkgs' flake to the exact
revision used to build the NixOS system, e.g.
{
"flakes": [
{
"from": {
"id": "nixpkgs",
"type": "indirect"
},
"to": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github",
"rev": "b0c285807d6a9f1b7562ec417c24fa1a30ecc31a"
}
}
],
"version": 2
}
Diffstat (limited to 'src/libfetchers/registry.hh')
-rw-r--r-- | src/libfetchers/registry.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libfetchers/registry.hh b/src/libfetchers/registry.hh index d2eb7749b..5e8857850 100644 --- a/src/libfetchers/registry.hh +++ b/src/libfetchers/registry.hh @@ -12,7 +12,8 @@ struct Registry enum RegistryType { Flag = 0, User = 1, - Global = 2, + System = 2, + Global = 3, }; RegistryType type; |