1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-30 00:48:21 +03:00
digga/doc/start/iso.md

25 lines
823 B
Markdown
Raw Normal View History

2021-02-14 05:38:20 +03:00
# ISO
Making and writing an installable iso for `hosts/NixOS.nix` is as simple as:
```sh
bud build NixOS bootstrapIso
2021-02-14 05:38:20 +03:00
dd bs=4M if=result/iso/*.iso of=/dev/$your_installation_device \
status=progress oflag=sync
```
This works for any host.
## ISO image nix store & cache
2021-05-17 11:46:02 +03:00
The iso image holds the store to the live environment and _also_ acts as a binary cache
to the installer. To considerably speed up things, the image already includes all flake
`inputs` as well as the `devshell` closures.
2021-05-17 11:46:02 +03:00
While you _could_ provision any machine with a single stick, a custom-made iso for
the host you want to install DevOS to, maximises those local cache hits.
2021-05-17 11:46:02 +03:00
For hosts that don't differ too much, a single usb stick might be ok, whereas when
there are bigger differences, a custom-made usb stick will be considerably faster.