From 9edad17d298a8f6cd7bdc6b540b74ff1f7f1338e Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 21 Jun 2023 15:54:14 +0200 Subject: [PATCH] nixos/top-level: Remove unused builder variables These variables were previously used by the activation script build commands, but are now embedded into those commands for to improve reusability for an upcoming addition. --- nixos/modules/system/activation/top-level.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 0fb8bffebdd6..ff8226cee2b3 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;