Package: nix-bin Version: 2.3.10+dfsg1-1 Severity: important Dear Maintainer,
I have installed nix-bin and nix-setup-systemd. I've added myself to the nix-users group, made sure the nix-daemon.service is running, etc. My problem is that nix doesn't appear to be in a functional state. If there are additional steps to take, it would be great to figure them out and add them to /usr/share/doc/nix-bin/README.Debian. The https://nixos.org/learn.html site, under "First Steps With Nix," has me set up an example project and run nix-build, which gives me: warning: Nix search path entry '/nix/var/nix/profiles/per-user/matt/channels/nixpkgs' does not exist, ignoring warning: Nix search path entry '/nix/var/nix/profiles/per-user/matt/channels' does not exist, ignoring error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/matt/scratch/nix/default.nix:1:17 Same problem if I run "nix-shell default.nix". As someone with no prior knowledge of Nix, I don't know what to do. I feel like there may be some step I haven't done, and that I haven't found on the nixos.org site. Perhaps something their installers do so they don't feel like they need to document them? I notice that the install-multi-user script in Nix's installation tarball has this function: place_channel_configuration() { if [ -z "${NIX_INSTALLER_NO_CHANNEL_ADD:-}" ]; then echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > "$SCRATCH/.nix-channels" _sudo "to set up the default system channel (part 1)" \ install -m 0664 "$SCRATCH/.nix-channels" "$ROOT_HOME/.nix-channels" fi } It has a lot of other places where it puts things in ~root/.nix-* files/directories, as a default. The ~root/ on my system has no .nix-* files/directories. Here are some details about my machine and shell state: $ dpkg -l | grep nix- ii nix-bin 2.3.10+dfsg1-1 ii nix-setup-systemd 2.3.10+dfsg1-1 $ systemctl list-units --type=service | grep nix nix-daemon.service loaded active running Nix Daemon $ id uid=1000(matt) gid=1000(matt) groups=1000(matt),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),987(nix-users) $ journalctl -u nix-daemon.service -- Journal begins at Sun 2021-10-17 17:54:51 PDT, ends at Thu 2022-01-20 17:14:31 PST. -- Jan 20 15:08:57 naz systemd[1]: Started Nix Daemon. Jan 20 15:18:51 naz systemd[1]: Stopping Nix Daemon... Jan 20 15:18:51 naz systemd[1]: nix-daemon.service: Deactivated successfully. Jan 20 15:18:51 naz systemd[1]: Stopped Nix Daemon. -- Boot b72f5fe8020341daa4ddbdc89850a60d -- Jan 20 15:20:21 naz systemd[1]: Started Nix Daemon. Jan 20 15:41:06 naz nix-daemon[929]: accepted connection from pid 5761, user matt $ env | grep NIX NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/matt/channels/nixpkgs:/nix/var/nix/profiles/per-user/matt/channels NIX_REMOTE=daemon -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (100, 'testing'), (90, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.15.0-2-amd64 (SMP w/24 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages nix-bin depends on: ii bzip2 1.0.8-5 ii curl 7.81.0-1 ii libboost-context1.74.0 1.74.0-14 ii libbrotli1 1.0.9-2+b3 ii libbz2-1.0 1.0.8-5 ii libc6 2.33-2 ii libcurl3-gnutls 7.81.0-1 ii libdbd-sqlite3-perl 1.70-3 ii libgc1 1:8.0.6-1.1 ii libgcc-s1 11.2.0-13 ii liblzma5 5.2.5-2 ii libreadline8 8.1.2-1 ii libseccomp2 2.5.3-2 ii libsodium23 1.0.18-1 ii libsqlite3-0 3.36.0-2 ii libssl1.1 1.1.1m-1 ii libstdc++6 11.2.0-13 ii libwww-curl-perl 4.17-7+b1 ii lsb-base 11.1.0 ii perl 5.32.1-6 ii xz-utils 5.2.5-2 Versions of packages nix-bin recommends: ii nix-setup-systemd 2.3.10+dfsg1-1 nix-bin suggests no packages. -- no debconf information