File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,11 @@ you can use the `--system` option to create images for other architectures.
153153
154154An example ` flake.nix ` demonstrating this approach is below.
155155
156- images can be built from the same ` configuration.nix ` by running:
156+ images can be built from that flake by running:
157157
158- - ` nix build .#vmware ` or
159- - ` nix build .#my-custom-format ` or
160- - ` nix build .#<any-other-format> `
158+ - ` nix build .#nixosConfigurations.my-machine.config.formats. vmware ` or
159+ - ` nix build .#nixosConfigurations.my-machine.config.formats. my-custom-format ` or
160+ - ` nix build .#nixosConfigurations.my-machine.config.formats. <any-other-format> `
161161
162162``` nix
163163{
@@ -198,10 +198,6 @@ images can be built from the same `configuration.nix` by running:
198198 nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem {
199199 modules = [self.nixosModules.my-machine];
200200 };
201-
202- # optionally re-expose all formats as packages
203- packages.x86_64-linux =
204- self.nixosConfigurations.my-machine.config.formats;
205201 };
206202}
207203```
You can’t perform that action at this time.
0 commit comments