nix: add systems input and fix zig follows (#11686)

Currently I have to use [this unusual
syntax](6e1c9f32e0/flake.nix (L137))
in my flake inputs to ensure that I don't have systems repeated in my
flake.lock file. This will make more obvious the fact that you have to
do follows to that hidden input.
pull/11699/head
Jeffrey C. Ollie 2026-03-20 07:35:59 -08:00 committed by GitHub
commit a888db94b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -54,6 +54,7 @@
"flake-compat": "flake-compat",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"systems": "systems",
"zig": "zig",
"zon2nix": "zon2nix"
}
@ -82,7 +83,9 @@
"nixpkgs": [
"nixpkgs"
],
"systems": "systems"
"systems": [
"systems"
]
},
"locked": {
"lastModified": 1773145353,

View File

@ -17,11 +17,17 @@
flake = false;
};
systems = {
url = "github:nix-systems/default";
flake = false;
};
zig = {
url = "github:mitchellh/zig-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
systems.follows = "systems";
};
};