1# This module contains the basic configuration for building a NixOS
2# installation CD.
3
4{ config, lib, options, pkgs, ... }:
5
6with lib;
7
8{
9 imports =
10 [ ./iso-image.nix
11
12 # Profiles of this basic installation CD.
13 ../../profiles/all-hardware.nix
14 ../../profiles/base.nix
15 ../../profiles/installation-device.nix
16 ];
17
18 # Adds terminus_font for people with HiDPI displays
19 console.packages = options.console.packages.default ++ [ pkgs.terminus_font ];
20
21 # ISO naming.
22 isoImage.isoName = "${config.isoImage.isoBaseName}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.iso";
23
24 # EFI booting
25 isoImage.makeEfiBootable = true;
26
27 # USB booting
28 isoImage.makeUsbBootable = true;
29
30 # Add Memtest86+ to the CD.
31 boot.loader.grub.memtest86.enable = true;
32
33 system.stateVersion = mkDefault "18.03";
34}