# this configuration is intended to have just enough stuff to get the disk, # display, USB input, and network up so the user can build a real config. # in the future we will just use the standard NixOS iso # based vaguely on # https://github.com/samueldr/cross-system/blob/master/configuration.nix { config, pkgs, lib, modulesPath, ... }: { imports = [ (modulesPath + "/profiles/minimal.nix") (modulesPath + "/profiles/installation-device.nix") (modulesPath + "/installer/cd-dvd/iso-image.nix") ]; # Adds terminus_font for people with HiDPI displays console.packages = [ pkgs.terminus_font ]; # ISO naming. isoImage.isoName = "${config.isoImage.isoBaseName}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.iso"; # EFI booting isoImage.makeEfiBootable = true; # An installation media cannot tolerate a host config defined file # system layout on a fresh machine, before it has been formatted. swapDevices = lib.mkOverride 60 [ ]; fileSystems = lib.mkOverride 60 config.lib.isoFileSystems; boot.postBootCommands = let inherit (config.hardware.asahi.pkgs) asahi-fwextract; in '' for o in $( nix.settings.experimental-features = [ "flakes" ]; # get rid of warning that stateVersion is unset system.stateVersion = lib.mkDefault lib.trivial.release; }