diff options
author | Nahum Shalman <nshalman@omniti.com> | 2016-04-08 13:53:27 +0000 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-04-29 10:42:39 +0100 |
commit | 83c0aca062369aa43d5e692f22ff22e8d2e787a1 (patch) | |
tree | f2a53e3e9e7ddab85f6688bed0eaa348352c59de /nixos/release.nix | |
parent | ecfc523d32b6969fbb0c5641fb2d155812e2b9f8 (diff) |
installer: simple PXE bootable NixOS installer
The Nix store squashfs is stored inside the initrd instead of separately
(cherry picked from commit 976fd407796877b538c470d3a5253ad3e1f7bc68)
Signed-off-by: Domen Kožar <domen@dev.si>
Diffstat (limited to 'nixos/release.nix')
-rw-r--r-- | nixos/release.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix index d78c1bb1c150..fa4a98601509 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -104,6 +104,20 @@ in rec { initialRamdisk = buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.initialRamdisk); + netboot = let build = (import lib/eval-config.nix { + system = "x86_64-linux"; + modules = [ + ./modules/installer/netboot/netboot-minimal.nix + versionModule + ]; + }).config.system.build; + in + pkgs.symlinkJoin "netboot" [ + build.netbootRamdisk + build.kernel + build.netbootIpxeScript + ]; + iso_minimal = forAllSystems (system: makeIso { module = ./modules/installer/cd-dvd/installation-cd-minimal.nix; type = "minimal"; |