-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install.sh homepage instructions only work without build-user-group #697
Comments
I think the fix is having different default build-user-group settings for |
This is how I currently got Nix installed on OSX: #!/bin/bash
set -xe
sudo mkdir -p /nix
sudo chown $USER /nix
sudo mkdir -p /etc/nix
if [ ! -e /etc/nix/nix.conf ]; then
sudo bash -c 'echo "build-users-group =" > /etc/nix/nix.conf'
fi
bash <(curl -s https://nixos.org/nix/install)
source ~/.nix-profile/etc/profile.d/nix.sh
for file in .zshrc .bashrc ; do if [ -e "~/$file" ]; then
echo 'source ~/.nix-profile/etc/profile.d/nix.sh' >> "$file"
fi;
CURL_CA_BUNDLE=$(find /nix -name ca-bundle.crt |tail -n 1) nix-channel --update |
Did you perhaps miss the warning? :)
|
@dezgeg this is a regression as far as I'm concerned. Getting nix installed in a Docker image worked fine with nix-1.7, as is done in the official Docker image: https://github.com/NixOS/nixpkgs/blob/master/maintainers/docker/Dockerfile. But doesn't work if you change that file to say nix-1.11.2 instead, due to the error in this very ticket. |
Getting the same thing on arch, without being root:
|
Running into the same issue, as I'm trying to install The instructions in https://github.com/NixOS/nixpkgs/blob/master/maintainers/docker/Dockerfile work only for the older nix versions, but those are not compatible with newer packages and thus installing those packages fail. |
We should really abort on |
I'm afraid I don't really understand why installing as root shouldn't be supported. I see that it isn't (and I personally will continue to apply hammers till it works). Why doesn't the nix community want to support it? At the moment, this makes installing nix at system configuration time (such as via chef) someone irritating as I have to apply work arounds so that I don't need to create a 'nix' user just to make the install work. |
Same here. An additional extremely common use case already mentioned above by a couple of users is: firing up a quick Docker image. |
Makes sense to support that, I think. Meanwhile you can use https://hub.docker.com/r/nixos/nix/ |
@domenkozar problem I have with that Docker image is - where do I find its corresponding Dockerfile? The one here is clearly not the source, since it's stuck on nix-1.7 whereas the latest on DockerHub uses nix-1.11.2. This is problematic in particular whenever I need to override the |
@mboes at the bottom of https://hub.docker.com/r/nixos/nix/ is the link to the Dockerfile. |
Thanks
|
Being root or not has absolutely nothing to do with the actual error:
Apple doesn't supply a |
I marked this as stale due to inactivity. → More info |
I marked this as stale due to inactivity. → More info |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
I marked this as stale due to inactivity. → More info |
So, to fix this I do:
And now, install works:
The text was updated successfully, but these errors were encountered: