Coder Social home page Coder Social logo

Comments (1)

redbeardymcgee avatar redbeardymcgee commented on July 4, 2024

I'm running into this problem also. I was previously testing devbox out using nix-installer from this repo and it was working great. But I don't think I want to keep using a wrapper tool, so i removed all that and restarted with just the nix-installer.

I receive the error from this issue exactly as stated by @pauldoo .

I don't know why it's trying to invoke fish. I leave bash as my login shell for POSIX reasons, and inherit that environment by launching exec fish ... later.

source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish fixes it, but i thought . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh was meant to be included in my bash startup by the installer. This would inherit just fine for me in fish (or I could just keep using bash, same difference) and I actually prefer it personally.

For now, I've added this to my .bashrc:

. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} ]]
then
  shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
  exec fish $LOGIN_OPTION
fi

I'm using home-manager to do this, but I snipped the absolute paths to the executables here.

However, the solution feels wrong, mostly because I did not need to do this yesterday.

from nix-installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.