From 21dd114f8204178d72d1587ec032be0e7f066c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 9 May 2015 21:11:49 +0000 Subject: [PATCH] Revert "Making nixos keep a ref to its stdenv" This reverts commit d170c98d13a7b622c57c9b9f727a6bfec95a9181. niksnut argues that we need smaller system closures, not bigger. So users facing the trouble of getting gcc rebuilds after nix-collect-garbage for any minimal nixos configuration change should use other means of not losing the stdenv output. One way is to keep one somewhere: nix-build -A stdenv -o stdenv ''. Another may be to use nix.conf options like gc-keep-outputs, gc-keep-derivations or env-keep-derivations. --- nixos/modules/system/activation/top-level.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 52d76b03602f..d7a1e205b4d4 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -64,7 +64,6 @@ let ln -s ${config.system.build.etc}/etc $out/etc ln -s ${config.system.path} $out/sw ln -s "$systemd" $out/systemd - ln -s ${pkgs.stdenv} $out/stdenv echo -n "$configurationName" > $out/configuration-name echo -n "systemd ${toString config.systemd.package.interfaceVersion}" > $out/init-interface-version