From 99b76120272bf13ec14a33f899614aff3f80de15 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 4 Apr 2023 09:54:52 +0300 Subject: fix: explicitly add systemctl and grep to path in shell-wrapper We can generally find them in /run/current-system/sw/bin, but WSL may try to call those before activation is fully done, so make sure it can always find what it needs. --- modules/wsl-distro.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index afcd131..7e0bacc 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -4,6 +4,7 @@ with lib; let bashWrapper = pkgs.writeShellScriptBin "sh" '' + export PATH=${lib.makeBinPath [ pkgs.systemd pkgs.gnugrep ]} . ${config.system.build.etc}/etc/set-environment exec ${pkgs.bashInteractive}/bin/sh "$@" ''; -- cgit v1.2.3