summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-04-11 12:03:03 +0300
committerGitHub <noreply@github.com>2023-04-11 12:03:03 +0300
commit3957b46e3177ef62c7fbfd809782e2a321b6ca64 (patch)
treecf5f6b1ff22853b0a16760f1de769292d0eb83c9 /modules
parent900bcf15600b841362f9549a5714922e029d8aef (diff)
parent99b76120272bf13ec14a33f899614aff3f80de15 (diff)
Merge pull request #240 from K900/smol-fix
fix: explicitly add systemctl and grep to path in shell-wrapper
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 "$@"
'';