better nixos detection
This commit is contained in:
parent
1aac37c777
commit
c1c5975068
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@
|
|||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH";
|
||||
'';
|
||||
envExtra = ''
|
||||
if [[ ! -x nixos-version ]]; then
|
||||
local nixos_version=`which nixos-version`
|
||||
if [[ -z $nixos_version ]]; then
|
||||
source /home/cyryl/.nix-profile/etc/profile.d/nix.sh
|
||||
export NIX_PATH="$HOME/.nix-defexpr/channels:$NIX_PATH"
|
||||
echo "non-nixos patches loaded"
|
||||
|
|
Loading…
Reference in a new issue