{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nix/issues/879","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/879/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/879/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/879/events","html_url":"https://github.com/NixOS/nix/issues/879","id":148172674,"number":879,"title":"how to correctly install Nix on ArchLinux","user":{"login":"k2s","id":181014,"avatar_url":"https://avatars.githubusercontent.com/u/181014?v=3","gravatar_id":"","url":"https://api.github.com/users/k2s","html_url":"https://github.com/k2s","followers_url":"https://api.github.com/users/k2s/followers","following_url":"https://api.github.com/users/k2s/following{/other_user}","gists_url":"https://api.github.com/users/k2s/gists{/gist_id}","starred_url":"https://api.github.com/users/k2s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k2s/subscriptions","organizations_url":"https://api.github.com/users/k2s/orgs","repos_url":"https://api.github.com/users/k2s/repos","events_url":"https://api.github.com/users/k2s/events{/privacy}","received_events_url":"https://api.github.com/users/k2s/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nix/labels/Install%20bug","name":"Install bug","color":"b60205"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-04-13T20:20:31Z","updated_at":"2016-10-15T12:58:56Z","closed_at":null,"body":"situation:\r\n* clean ArchLinux installation\r\n* installation of Nix from AUR package https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nix\r\n```\r\n./configure --prefix=/usr \\\r\n              --libexecdir=\"/usr/lib/$pkgname\" \\\r\n              --sysconfdir=/etc \\\r\n              --enable-gc\r\nmake\r\nmake install\r\n```\r\n* replacing `/etc/profile.d/nix.sh` with current version provided in pull request #452\r\n* intentionally NOT installing https://aur.archlinux.org/packages/nix-multiuser\r\n* no `/etc/nix/nix.conf` file\r\n\r\nexpected:\r\n* out of box working Nix (nix-env, nix-channel, etc.) under root account \r\n* not usable Nix under user accounts\r\n\r\ncurrent result:\r\n* logging in as root  first time will initialize Nix for root\r\n* but running nix-env will print error message:\r\n```\r\nwarning: the group ‘nixbld’ specified in ‘build-users-group’ does not exist\r\nbuilding path(s) ‘/nix/store/n2i7g8pmylm2wbxz2hl1fvyfz3ay7vcp-user-environment’\r\nerror: the group ‘nixbld’ specified in ‘build-users-group’ does not exist\r\n```\r\n* logging in as regular user will always print messages:\r\n```\r\nmkdir: cannot create directory ‘/nix/var/nix/profiles/per-user/k2s’: Permission denied\r\nstat: cannot stat '/nix/var/nix/profiles/per-user/k2s': No such file or directory\r\nNix: WARNING: bad ownership on /nix/var/nix/profiles/per-user/k2s, should be 1000\r\nmkdir: cannot create directory ‘/nix/var/nix/gcroots/per-user/k2s’: Permission denied\r\nstat: cannot stat '/nix/var/nix/gcroots/per-user/k2s': No such file or directory\r\nNix: WARNING: bad ownership on /nix/var/nix/gcroots/per-user/k2s, should be 1000\r\n/usr/lib/prezto/modules/fasd/init.zsh:32: permission denied: /usr/lib/prezto/modules/fasd/cache.zsh\r\n```\r\n\r\n**I would like to fix Nix installation on ArchLinux, but need to understand:**\r\n1. should latest version of Nix be installed always with multiuser in mind ?\r\n2. `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 ?\r\n3. Nix install will not `chmod 1777 /nix/var/nix/{profiles,gcroots}/per-user`. Should ArchLinux package always apply this or should [nix-profile.sh.in](https://github.com/NixOS/nix/blob/master/scripts/nix-profile.sh.in) be changed to handle such situation (handle non-multiuser setup) ?"},"comment":{"url":"https://api.github.com/repos/NixOS/nix/issues/comments/253982797","html_url":"https://github.com/NixOS/nix/issues/879#issuecomment-253982797","issue_url":"https://api.github.com/repos/NixOS/nix/issues/879","id":253982797,"user":{"login":"chrissound","id":1499652,"avatar_url":"https://avatars.githubusercontent.com/u/1499652?v=3","gravatar_id":"","url":"https://api.github.com/users/chrissound","html_url":"https://github.com/chrissound","followers_url":"https://api.github.com/users/chrissound/followers","following_url":"https://api.github.com/users/chrissound/following{/other_user}","gists_url":"https://api.github.com/users/chrissound/gists{/gist_id}","starred_url":"https://api.github.com/users/chrissound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrissound/subscriptions","organizations_url":"https://api.github.com/users/chrissound/orgs","repos_url":"https://api.github.com/users/chrissound/repos","events_url":"https://api.github.com/users/chrissound/events{/privacy}","received_events_url":"https://api.github.com/users/chrissound/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T12:58:56Z","updated_at":"2016-10-15T12:58:56Z","body":"Yeah not too sure if I'm encountering the same problem but:\r\n```\r\n ✘ chris@archamd  ~  nix-env -q\r\nerror: creating directory ‘/nix’: Permission denied\r\n ✘ chris@archamd  ~  sudo nix-env -q\r\nwarning: the group ‘nixbld’ specified in ‘build-users-group’ does not exist\r\n chris@archamd  ~  group\r\n ✘ chris@archamd  ~  sudo nix-env -i                                                                                                                                                         \r\nwarning: the group ‘nixbld’ specified in ‘build-users-group’ does not exist\r\nerror: getting information about ‘/root/.nix-defexpr’: No such file or directory\r\n ✘ chris@archamd  ~  sudo nix-env -i vim\r\nwarning: the group ‘nixbld’ specified in ‘build-users-group’ does not exist\r\nerror: getting information about ‘/root/.nix-defexpr’: No such file or directory\r\n```"}}
{"actor":{"display_login":"chrissound"}}