From cdaaf95e206c295404b189882db2f7d294d2cbe8 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 9 Jun 2022 20:00:26 +0200 Subject: [PATCH] nixos/release.nix: expose a `kexec.$system` attribute --- nixos/release.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/release.nix b/nixos/release.nix index e0d782bcaec3..beafdf9ff5bc 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -151,6 +151,13 @@ in rec { # Build the initial ramdisk so Hydra can keep track of its size over time. initialRamdisk = buildFromConfig ({ ... }: { }) (config: config.system.build.initialRamdisk); + kexec = forMatchingSystems supportedSystems (system: (import lib/eval-config.nix { + inherit system; + modules = [ + ./modules/installer/netboot/netboot-minimal.nix + ]; + }).config.system.build.kexecTree); + netboot = forMatchingSystems supportedSystems (system: makeNetboot { module = ./modules/installer/netboot/netboot-minimal.nix; inherit system;