{ config, lib, options, pkgs, inputs, modulesPath, ... }: with lib; let calamares-nixos-autostart = pkgs.makeAutostartItem { name = "io.calamares.calamares"; package = pkgs.calamares-nixos; }; in { imports = [ ./iso-image.nix (modulesPath + "/profiles/all-hardware.nix") (modulesPath + "/profiles/base.nix") (modulesPath + "/profiles/installation-device.nix") ]; boot.loader.timeout = lib.mkForce 1; # Adds terminus_font for people with HiDPI displays console.packages = options.console.packages.default ++ [ pkgs.terminus_font ]; # ISO naming. isoImage.isoName = "${config.isoImage.isoBaseName}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.iso"; # 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 = mkImageMediaOverride [ ]; fileSystems = mkImageMediaOverride config.lib.isoFileSystems; boot.postBootCommands = '' for o in $(