First of all, I’m completely new to Nix and I have no idea what I’m doing. I would like to use it initially as a more general purpose replacement of conda environments for my AI-development workflow. To begin with, I’d like to install nix package manager at my work server where I don’t have root access. I tried

sh <(curl -L https://nixos.org/nix/install) --no-daemon

however it tries to create /nix which I cannot do without sudo. I searched everywhere, but I don’t seem to find a way to circumvent this.

Thanks!

    • suspectum@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      That’s all right, thanks! It seems that it does do something indeed, I had to run with debug information and it was simply taking a long time to configure itself

      NP_DEBUG=2 ./nix-portable nix-shell -p hello
      

      The only issue is I downloaded a binary package which is dated early 2022 and it uses nix 2.5.1. I need to figure out how to force it to use the latest version of nix.