$ NIX_PATH=nixpkgs=$PWD strace nix-env -qaP 2>&1 | grep /home
newfstatat(AT_FDCWD, "/home/user", {st_mode=S_IFDIR|0700, st_size=6286, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/user/.nix-defexpr/channels", {st_mode=S_IFLNK|0777, st_size=44, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "/home/user/.nix-profile/etc/xdg/nix/nix.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.config/nix/nix.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(AT_FDCWD, "/home/user/.nix-defexpr", {st_mode=S_IFDIR|0755, st_size=42, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/home/user/.nix-profile", {st_mode=S_IFLNK|0777, st_size=43, ...}, AT_SYMLINK_NOFOLLOW) = 0
readlink("/home/user/.nix-profile", "/nix/var/nix/profiles/per-user/u"..., 1024) = 43
newfstatat(AT_FDCWD, "/home/user/.nix-defexpr", {st_mode=S_IFDIR|0755, st_size=42, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/user/.nix-defexpr/default.nix", 0x7ffd0c005550, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.nix-defexpr", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
newfstatat(AT_FDCWD, "/home/user/.nix-defexpr/channels", 0x7ffd0c005590, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.nix-defexpr/channels_root", 0x7ffd0c005590, 0) = -1 ENOENT (No such file or directory)
Describe the bug
My system does not have any channels.
I tried to use
nix-indextoday, but it failed.Taking the
nix-envhint, I tried the following:ie no output
stracereveals that my nixpkgs checkout wasn't accessed at all.Details
I've tried with a nix-defexpr
Steps To Reproduce
nix.channel.enable = false;nix-envwith aNIX_PATHor-I.Expected behavior
I can use
nix-envandnix-indexwith justNIX_PATHand no channels on my system.nix-env --versionoutputAdditional context
Add any other context about the problem here.
Priorities
Add 👍 to issues you find important.