Skip to content

Non-NixOS: Distro-provided bash, bashbug, sh, mount, and umount are overriden in $PATH #492

Description

@ImperatorStorm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions