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!

You are viewing a single thread.
View all comments
0 points

Above command will perform a single-user installation of Nix, meaning that /nix is owned by the invoking user. You should run this under your usual user account, not as root. The script will invoke sudo to create /nix if it doesn’t already exist.

https://nixos.org/download.html#nix-install-linux

permalink
report
reply

nixos

!nixos@lemmy.ml

Create post

All about NixOS - https://nixos.org/

Community stats

  • 2

    Monthly active users

  • 56

    Posts

  • 35

    Comments

Community moderators