Netboot: Difference between revisions
Switch from "nix build" to "nix-build" command so it works out-of-the-box without experimental features |
Reduce build time of second example |
||
| Line 127: | Line 127: | ||
modules = [ | modules = [ | ||
<nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix> | <nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix> | ||
# Reduce build time by ~7x (~1 minute instead of many minutes) by not using the highest compression (image is 5% larger). | |||
({ ... }: { netboot.squashfsCompression = "zstd -Xcompression-level 6"; }) | |||
version-module | version-module | ||
example-configuration | example-configuration | ||
| Line 205: | Line 207: | ||
in | in | ||
if legacy then run-dnsmasq else run-pixiecore}} | if legacy then run-dnsmasq else run-pixiecore|name=netboot.nix|lang=nix}} | ||
Building: | Building: | ||