mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
* Rename the CD modules to something more sensible.
* Make sure that reconfiguration in the live CD works properly by including the proper configuration module in /etc/nixos/configuration.nix. Ugly. svn path=/nixos/branches/modular-nixos/; revision=16016
This commit is contained in:
parent
fc3eecad91
commit
97a4e1fcb3
3 changed files with 14 additions and 1 deletions
|
@ -13,6 +13,15 @@ let
|
|||
NixOS version number.
|
||||
'';
|
||||
};
|
||||
|
||||
installer.configModule = pkgs.lib.mkOption {
|
||||
example = "./nixos/modules/installer/cd-dvd/installation-cd.nix";
|
||||
description = ''
|
||||
Filename of the configuration module that builds the CD
|
||||
configuration. Must be specified to support reconfiguration
|
||||
in live CDs.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
@ -46,7 +55,7 @@ let
|
|||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
require = [./nixos/modules/installer/cd-dvd/installation-cd.nix];
|
||||
require = [${config.installer.configModule}];
|
||||
|
||||
# Add your own options below and run "nixos-rebuild switch".
|
||||
# E.g.,
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
{
|
||||
require = [./installation-cd-base.nix];
|
||||
|
||||
installer.configModule = "./nixos/modules/installer/cd-dvd/installation-cd-graphical.nix";
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
autorun = false;
|
|
@ -6,6 +6,8 @@
|
|||
{
|
||||
require = [./installation-cd-base.nix];
|
||||
|
||||
installer.configModule = "./nixos/modules/installer/cd-dvd/installation-cd-minimal.nix";
|
||||
|
||||
# Don't include X libraries.
|
||||
services.sshd.forwardX11 = false;
|
||||
fonts.enableFontConfig = false;
|
Loading…
Reference in a new issue