2009-06-11 02:51:27 -07:00
|
|
|
# This module contains the basic configuration for building a NixOS
|
|
|
|
# installation CD.
|
2009-06-05 08:10:15 -07:00
|
|
|
|
2014-04-14 07:26:48 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
2009-11-10 13:42:38 -08:00
|
|
|
|
2014-04-14 07:26:48 -07:00
|
|
|
with lib;
|
2009-06-05 08:10:15 -07:00
|
|
|
|
|
|
|
{
|
2013-09-04 04:05:09 -07:00
|
|
|
imports =
|
2015-06-10 03:04:26 -07:00
|
|
|
[ ./iso-image.nix
|
2010-09-25 02:32:43 -07:00
|
|
|
|
|
|
|
# Profiles of this basic installation CD.
|
2011-11-08 07:58:59 -08:00
|
|
|
../../profiles/all-hardware.nix
|
2010-09-25 02:32:27 -07:00
|
|
|
../../profiles/base.nix
|
2010-09-25 02:32:43 -07:00
|
|
|
../../profiles/installation-device.nix
|
2009-06-09 06:14:43 -07:00
|
|
|
];
|
2009-06-05 08:10:15 -07:00
|
|
|
|
2009-06-09 08:23:03 -07:00
|
|
|
# ISO naming.
|
2017-03-31 17:00:00 -07:00
|
|
|
isoImage.isoName = "${config.isoImage.isoBaseName}-${config.system.nixos.label}-${pkgs.stdenv.system}.iso";
|
2011-09-14 11:20:50 -07:00
|
|
|
|
2014-06-05 13:51:43 -07:00
|
|
|
isoImage.volumeID = substring 0 11 "NIXOS_ISO";
|
2011-09-14 11:20:50 -07:00
|
|
|
|
2013-11-01 08:29:36 -07:00
|
|
|
# EFI booting
|
|
|
|
isoImage.makeEfiBootable = true;
|
|
|
|
|
2014-10-26 13:29:04 -07:00
|
|
|
# USB booting
|
|
|
|
isoImage.makeUsbBootable = true;
|
|
|
|
|
2013-10-02 03:29:07 -07:00
|
|
|
# Add Memtest86+ to the CD.
|
2014-01-21 08:25:49 -08:00
|
|
|
boot.loader.grub.memtest86.enable = true;
|
2013-11-01 08:29:36 -07:00
|
|
|
|
2014-05-21 03:04:08 -07:00
|
|
|
# Allow the user to log in as root without a password.
|
2014-11-03 03:30:54 -08:00
|
|
|
users.extraUsers.root.initialHashedPassword = "";
|
2009-06-05 08:10:15 -07:00
|
|
|
}
|