diff --git a/modules/initrd.nix b/modules/initrd.nix index 5a8d8f89..37815ede 100644 --- a/modules/initrd.nix +++ b/modules/initrd.nix @@ -3,7 +3,6 @@ let inherit (pkgs) busybox - kexectools makeInitrd mkExtraUtils runCommandNoCC @@ -165,7 +164,6 @@ let busybox ] ++ optionals (stage-1 ? extraUtils) stage-1.extraUtils - ++ optionals (config.mobile.quirks.supportsStage-0) [ kexectools ] ++ [{ package = runCommandNoCC "empty" {} "mkdir -p $out"; extraCommand = diff --git a/modules/stage-0.nix b/modules/stage-0.nix index 1a116e90..9a1a0a70 100644 --- a/modules/stage-0.nix +++ b/modules/stage-0.nix @@ -25,6 +25,9 @@ in system.build.stage-0 = (config.lib.mobile-nixos.composeConfig { config = { mobile.boot.stage-1.stage = if supportsStage-0 then 0 else 1; + mobile.boot.stage-1.extraUtils = with pkgs; [ + { package = pkgs.kexectools; } + ]; }; }).config; };