@@ -125,46 +125,43 @@ Multi-directory flake:
125
125
# ./flake.nix
126
126
127
127
{
128
- inputs = {
129
- nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
130
- unstable.url = "github:nixos/nixpkgs/nixos-unstable";
131
-
132
- parts.url = "github:hercules-ci/flake-parts";
133
- parts.inputs.nixpkgs-lib.follows = "nixpkgs";
134
-
135
- systems.url = "github:nix-systems/default";
136
-
137
- autopilot.url = "github:stepbrobd/autopilot";
138
- autopilot.inputs.nixpkgs.follows = "nixpkgs";
139
- autopilot.inputs.parts.follows = "parts";
140
- autopilot.inputs.systems.follows = "systems";
128
+ inputs = {
129
+ nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
130
+ unstable.url = "github:nixos/nixpkgs/nixos-unstable";
131
+ parts.url = "github:hercules-ci/flake-parts";
132
+ parts.inputs.nixpkgs-lib.follows = "nixpkgs";
133
+ systems.url = "github:nix-systems/default";
134
+ autopilot.url = "github:stepbrobd/autopilot";
135
+ autopilot.inputs.nixpkgs.follows = "nixpkgs";
136
+ autopilot.inputs.parts.follows = "parts";
137
+ autopilot.inputs.systems.follows = "systems";
138
+ };
139
+
140
+ outputs = inputs: inputs.autopilot.lib.mkFlake
141
+ {
142
+ inherit inputs;
143
+
144
+ autopilot = {
145
+ lib = {
146
+ path = ./lib;
147
+ excludes = [ ];
148
+ extender = inputs.nixpkgs.lib;
149
+ extensions = with inputs; [ autopilot.lib parts.lib ];
150
+ };
151
+
152
+ nixpkgs = {
153
+ config = { allowUnfree = true; };
154
+ overlays = [ ];
155
+ instances = [
156
+ { pkgs = inputs.nixpkgs; }
157
+ { unstable = inputs.unstable; }
158
+ ];
159
+ };
160
+
161
+ parts = { path = ./parts; excludes = [ ]; };
141
162
};
142
-
143
- outputs = inputs: inputs.autopilot.lib.mkFlake
144
- {
145
- inherit inputs;
146
-
147
- autopilot = {
148
- lib = {
149
- path = ./lib;
150
- excludes = [ ];
151
- extender = inputs.nixpkgs.lib;
152
- extensions = with inputs; [ autopilot.lib parts.lib ];
153
- };
154
-
155
- nixpkgs = {
156
- config = { allowUnfree = true; };
157
- overlays = [ ];
158
- instances = [
159
- { name = "pkgs"; value = inputs.nixpkgs; }
160
- { name = "unstable"; value = inputs.unstable; }
161
- ];
162
- };
163
-
164
- parts = { path = ./parts; excludes = [ ]; };
165
- };
166
- }
167
- { systems = import inputs.systems; };
163
+ }
164
+ { systems = import inputs.systems; };
168
165
}
169
166
```
170
167
@@ -180,9 +177,9 @@ x: x + 1
180
177
# ./parts/formatter.nix
181
178
182
179
{
183
- perSystem = { unstable, ... }: {
184
- formatter = unstable.nixpkgs-fmt;
185
- };
180
+ perSystem = { unstable, ... }: {
181
+ formatter = unstable.nixpkgs-fmt;
182
+ };
186
183
}
187
184
```
188
185
0 commit comments