summary refs log tree commit diff
path: root/modules/installer/cd-dvd/iso-image.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-08-29 12:11:31 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-08-29 12:11:31 +0000
commit597e083d82741781dbb25cba6ef34dff9ab21096 (patch)
tree8653d8b2066676fd990d4744a92a4996def49ccb /modules/installer/cd-dvd/iso-image.nix
parent59b29535e57b30b3c9df000a3be824e197e7049f (diff)
downloadnixpkgs-597e083d82741781dbb25cba6ef34dff9ab21096.tar
nixpkgs-597e083d82741781dbb25cba6ef34dff9ab21096.tar.gz
nixpkgs-597e083d82741781dbb25cba6ef34dff9ab21096.tar.bz2
nixpkgs-597e083d82741781dbb25cba6ef34dff9ab21096.tar.lz
nixpkgs-597e083d82741781dbb25cba6ef34dff9ab21096.tar.xz
nixpkgs-597e083d82741781dbb25cba6ef34dff9ab21096.tar.zst
nixpkgs-597e083d82741781dbb25cba6ef34dff9ab21096.zip
Adding an option to include build dependencies into ISO image
svn path=/nixos/trunk/; revision=23502
Diffstat (limited to 'modules/installer/cd-dvd/iso-image.nix')
-rw-r--r--modules/installer/cd-dvd/iso-image.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/installer/cd-dvd/iso-image.nix b/modules/installer/cd-dvd/iso-image.nix
index 9ce05522f48..15ac3449207 100644
--- a/modules/installer/cd-dvd/iso-image.nix
+++ b/modules/installer/cd-dvd/iso-image.nix
@@ -54,6 +54,18 @@ let
       '';
     };
 
+    isoImage.includeSystemBuildDependencies = mkOption {
+      default = false;
+      example = true;
+      description = ''
+        Set this option to include all the needed sources etc in the
+        image. It significantly increases image size. Use that when
+        you want to be able to keep all the sources needed to build your
+        system or when you are going to install the system on a computer
+        with slow on non-existent network connection.
+      '';
+    };
+
   };
 
 
@@ -164,7 +176,9 @@ in
   isoImage.storeContents =
     [ config.system.build.bootStage2
       config.system.build.toplevel
-    ];
+    ] ++ 
+    (optional config.isoImage.includeSystemBuildDependencies
+      config.system.build.toplevel.drvPath);
 
   # Create the squashfs image that contains the Nix store.
   system.build.squashfsStore = import ../../../lib/make-squashfs.nix {