Skip to content

Commit 34bbb3e

Browse files
committed
chore(all-formats): make example more explicit
Remove the packages flake output
1 parent 27c86ee commit 34bbb3e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ you can use the `--system` option to create images for other architectures.
153153

154154
An 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
```

0 commit comments

Comments
 (0)