# This module contains the basic configuration for building a NixOS # installation CD. { config, lib, options, pkgs, ... }: { imports = [ ./iso-image.nix # Profiles of this basic installation CD. ../../profiles/base.nix ../../profiles/installation-device.nix ]; hardware.enableAllHardware = true; # Adds terminus_font for people with HiDPI displays console.packages = options.console.packages.default ++ [ pkgs.terminus_font ]; # EFI booting isoImage.makeEfiBootable = true; # USB booting isoImage.makeUsbBootable = true; # Add Memtest86+ to the CD. boot.loader.grub.memtest86.enable = true; # An installation media cannot tolerate a host config defined file # system layout on a fresh machine, before it has been formatted. swapDevices = lib.mkImageMediaOverride [ ]; fileSystems = lib.mkImageMediaOverride config.lib.isoFileSystems; boot.postBootCommands = '' for o in $(