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