diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 0fb8bffebdd64..ff8226cee2b3a 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -81,13 +81,7 @@ let passAsFile = [ "extraDependencies" ]; buildCommand = systemBuilder; - # Some of these variables may be unused, but without certainly, removing - # them runs a risk of breaking out of tree systemBuilderCommands - inherit (pkgs) coreutils; systemd = config.systemd.package; - shell = "${pkgs.bash}/bin/sh"; - su = "${pkgs.shadow.su}/bin/su"; - utillinux = pkgs.util-linux; kernelParams = config.boot.kernelParams; nixosLabel = config.system.nixos.label;