about summary refs log tree commit diff
path: root/nixos/release.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2022-06-09 20:00:26 +0200
committerFlorian Klink <flokli@flokli.de>2022-06-09 20:00:26 +0200
commitcdaaf95e206c295404b189882db2f7d294d2cbe8 (patch)
tree4968d4247d3334790f7602d2c20a46114de9c284 /nixos/release.nix
parent50648f568d2c988dc53d4ea82da622eca0fe3dd7 (diff)
nixos/release.nix: expose a `kexec.$system` attribute
Diffstat (limited to 'nixos/release.nix')
-rw-r--r--nixos/release.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix
index e0d782bcaec3d..beafdf9ff5bce 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;