summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-04-04 09:54:52 +0300
committerK900 <me@0upti.me>2023-04-04 09:54:52 +0300
commit99b76120272bf13ec14a33f899614aff3f80de15 (patch)
treef5f18658e482e0550935273ade6f3cc6bd440269 /modules
parent64558a3bfe73a40ba4add048e3ec586e7ff567c3 (diff)
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/wsl-distro.nix1
1 files changed, 1 insertions, 0 deletions
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 "$@"
'';