Talk:Nix

From ArchWiki

Alternative installation methods removed

User:grawlinson did a "major refactor" with [1] and part of the information hasn't been added back to the article. Specifically archlinux-nixAUR, which uses upstream binaries, is no longer mentioned.

The manual installation was removed in a previous edit with [2]; however, pages like Rust still mention installation through curl (albeit with a notice to actually check what has been retrieved before executing it).

This already caused complaints on IRC because nix was reported as non-working, and other methods are now undocumented. -- Alad (talk) 12:20, 1 July 2021 (UTC)Reply[reply]

Acknowledged. I'll revert my changes. Grawlinson (talk) 23:43, 1 July 2021 (UTC)Reply[reply]

Some steps are missing from the "Configuration" section

I've installed the "nix" package and configured a channel, as described.

The absolute first thing the official tutorial has you do to confirm Nix works is to run "nix-shell -p hello", which explodes:

➜ nix-shell -p hello
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

       at «string»:1:25:

            1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (hello) ]; } ""
             |                         ^
(use '--show-trace' to show detailed location information)

I assume the official install script does some additional configuration that the Arch package doesn't, which should probably be described under the Configuration section.

I still haven't figured out *what* I'm missing (after hours of fumbling in extreme frustration) so I can't suggest an edit.

—This unsigned comment is by Hubro (talk) 15:24, 31 December 2022. Please sign your posts with ~~~~!

That is pretty easy to solve and must be on of those three things: - there is no channel named nixpkgs - nix-channel --update need to be run - NIX_PATH is missing an entry for nixpkgs or a default entry. It should look like ``nixpkgs=/nix/var/nix/profiles/per-user/$USER/channels/nixpkgs:/nix/var/nix/profiles/per-user/$USER/channels``

Sandro (talk) 22:19, 31 December 2022 (UTC)Reply[reply]

I had the same issue, and found a possible solution while not changing too much the `nix` arch package. Opened an Arch issue, but not sure if that's the proper way though. --Gileri (talk) 21:03, 18 June 2023 (UTC)Reply[reply]

nix-users

I'm missing something here about the group membership that is described: "Add required users to the nix-users group in order to access the daemon socket." In practice that doesn't seem to matter, the socket is only owned by root:

   srw-rw-rw- 1 root root 0 Jul 19 11:50 /nix/var/nix/daemon-socket/socket=

Can the article clarify as to whether the user should be able to run nix? -blee (talk) 18:58, 19 July 2023 (UTC)Reply[reply]