From ae6104ae59feaa4924628fb489ba78ed13b7b640 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 31 Dec 2007 08:52:59 +0000 Subject: [PATCH] Fixed a bit about child configurations, added an option to not run X job, but create it, and to export configuration files from it. svn path=/nixos/trunk/; revision=9986 --- system/options.nix | 19 +++++++++++++++++++ system/system.nix | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/system/options.nix b/system/options.nix index 3b5353d0807..0e607a5dd74 100644 --- a/system/options.nix +++ b/system/options.nix @@ -420,6 +420,9 @@ specify a volume label (label) for file systems that support it, such as ext2/ext3 (see mke2fs -L). + + autocreate forces mountPoint to be created with + mkdir -p . "; }; @@ -671,6 +674,22 @@ "; }; + autorun = mkOption { + default = true; + description = " + Switch to false to create upstart-job and configuration, + but not run it automatically + "; + }; + + exportConfiguration = mkOption { + default = false; + description = " + Create /etc/X11/xorg.conf and a file with environment + variables + "; + }; + tcpEnable = mkOption { default = false; description = " diff --git a/system/system.nix b/system/system.nix index b1657f74138..c0edff9778d 100644 --- a/system/system.nix +++ b/system/system.nix @@ -357,7 +357,8 @@ rec { pkgs.upstart # for initctl ]; children = map (x: ((import ./system.nix) - {inherit platform stage2Init; configuration = x;}).system) + {inherit platform stage2Init; + configuration = x//{boot=((x.boot)//{grubDevice = "";});};}).system) config.nesting.children; configurationName = config.boot.configurationName; }) (pkgs.getConfig ["checkConfigurationOptions"] false)