mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-06 16:57:08 +00:00
nix-tools: make systemPath
more readable
This commit is contained in:
parent
02232f71c5
commit
3d95b01351
1 changed files with 16 additions and 1 deletions
|
@ -5,7 +5,22 @@
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, stdenv
|
, stdenv
|
||||||
, profile ? "/nix/var/nix/profiles/system"
|
, profile ? "/nix/var/nix/profiles/system"
|
||||||
, systemPath ? "$HOME/.nix-profile/bin:/etc/profiles/per-user/$USER/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
|
, # This should be kept in sync with the default
|
||||||
|
# `environment.systemPath`. We err on side of including conditional
|
||||||
|
# things like the profile directories, since they’re more likely to
|
||||||
|
# help than hurt, and this default is mostly used for fresh
|
||||||
|
# installations anyway.
|
||||||
|
systemPath ? lib.concatStringsSep ":" [
|
||||||
|
"$HOME/.nix-profile/bin"
|
||||||
|
"/etc/profiles/per-user/$USER/bin"
|
||||||
|
"/run/current-system/sw/bin"
|
||||||
|
"/nix/var/nix/profiles/default/bin"
|
||||||
|
"/usr/local/bin"
|
||||||
|
"/usr/bin"
|
||||||
|
"/bin"
|
||||||
|
"/usr/sbin"
|
||||||
|
"/sbin"
|
||||||
|
]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
Loading…
Add table
Reference in a new issue