-
-
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
how to correctly install Nix on ArchLinux #879
Comments
Looks like nix is assuming things about nixbld when running as root? Not sure how to fix atm… |
|
I think it would be a good idea to provide the nixbld group. The script doesn't need to test if that dir is writeable, in normal operation you simply get an error message, nothing more. |
Any progress here, please? |
cc @edolstra, this one is very unpleasant. |
Yeah not too sure if I'm encountering the same problem but:
|
I'm also having the same issues as @chrissound, unable to use nix on Archlinux because of this. |
Just tried this again and I'm still having issues:
|
I've been using nix on arch linux for a long time. I use sysusers.d and tmpfiles.d to intialize stuff + the bootstrap tarball, works really well here ... |
@joachifm what are sysusers.d and tmpfiles.d? I don't see any mention of those on http://nixos.org/nix/manual/ could you point me to any resources? |
@chrissound sorry, I was referring to |
@joachifm can you elaborate on the exact steps you took to get nix working with using your approach? |
@Cutuchiqueno I think this is a pretty good writeup https://gist.github.com/expipiplus1/e571ce88c608a1e83547c918591b149f. |
Just to confirm I got it working with the link provided. Thank you @joachifm The AUR package (https://aur.archlinux.org/packages/nix/) would need to be updated to include those instructions in the PKGBUILD file. I had to |
@expipiplus1's instructions work for me too. |
Thanks to the pointer by kyrias, I managed to make nix work in ArchLinux with: sudo pacman -S rsync
bash <(curl https://nixos.org/nix/install) --daemon
# After finishing the installer there's this message:
# Before Nix will work in your existing shells, you'll need to close
# them and open them again. Other than that, you should be ready to go.
# Try it! Open a new terminal, and type:
# $ nix-shell -p nix-info --run "nix-info -m"
# But the nix commands were not added to my PATH, did a:
source /etc/profile.d/nix.sh
# and all working good now, added that to my .bashrc as well |
Fresh new user here, I did the same as @steve-chavez (#879 (comment)), it worked well! I guess this issue can be closed? |
Want to second @bew and @steve-chavez - following the steps in #879r410904367 (on a fresh Arch install) worked perfectly!! |
See also this article https://wiki.archlinux.org/index.php/Nix |
situation:
/etc/profile.d/nix.sh
with current version provided in pull request Bring nix-profile.sh in line with NixOS #452/etc/nix/nix.conf
fileexpected:
current result:
I would like to fix Nix installation on ArchLinux, but need to understand:
build-users-group=nixbld
seams to be now default setting (had to be added manually before), should it be somehow cleared in/etc/nix/nix.conf
or should it be always created in OS package ?chmod 1777 /nix/var/nix/{profiles,gcroots}/per-user
. Should ArchLinux package always apply this or should nix-profile.sh.in be changed to handle such situation (handle non-multiuser setup) ?The text was updated successfully, but these errors were encountered: