Describe the bug
When running nix run 'github:numtide/system-manager' -- switch --flake . --sudo, system-manager puts its bash, sh, and bashbug binaries in the same place as binaries from packages installed in environment.systemPackages and its mount and umount binaries in /run/wrappers/bin/, causing them to have a higher precedence in $PATH than the respective (and possibly more up-to-date) binaries provided by the user's distribution.
Expected behavior
system-manager's bash, sh, bashbug, mount, and umount are not placed in the user's $PATH
System information
system-manager main branch
Arch Linux
% nix --version
nix (Lix, like Nix) 2.95.3
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/imperatorstorm/.config/nix/nix.conf:/home/imperatorstorm/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/11mvswxaqf962apqki9i0b8b56qj9irr-lix-2.95.3/share
Additional context
Describe the bug
When running
nix run 'github:numtide/system-manager' -- switch --flake . --sudo,system-managerputs itsbash,sh, andbashbugbinaries in the same place as binaries from packages installed inenvironment.systemPackagesand itsmountandumountbinaries in/run/wrappers/bin/, causing them to have a higher precedence in$PATHthan the respective (and possibly more up-to-date) binaries provided by the user's distribution.Expected behavior
system-manager'sbash,sh,bashbug,mount, andumountare not placed in the user's$PATHSystem information
system-managermain branchArch Linux
Additional context