nixos/installation-device: don’t include stdenv

A basic NixOS system shouldn’t require `stdenv` to install, and
it adds something like 45 MiB of build tools to the installer
closure. This doesn’t really help much at present since
WebKitGTK(?!) has a dodgy reference to GCC, but it’s a step in the
right direction.
This commit is contained in:
Emily
2025-08-04 03:48:05 +01:00
parent b43f9aaebc
commit f5f4d6e8e3
2 changed files with 5 additions and 2 deletions
@@ -107,11 +107,10 @@ with lib;
boot.kernel.sysctl."vm.overcommit_memory" = "1";
# To speed up installation a little bit, include the complete
# stdenv in the Nix store on the CD.
# stdenvNoCC in the Nix store on the CD.
system.extraDependencies =
with pkgs;
[
stdenv
stdenvNoCC # for runCommand
busybox
# For boot.initrd.systemd
+4
View File
@@ -709,6 +709,10 @@ let
system.extraDependencies =
with pkgs;
[
# TODO: Remove this when we can install systems
# without `stdenv`.
stdenv
bintools
brotli
brotli.dev