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