nix-index icon indicating copy to clipboard operation
nix-index copied to clipboard

Sporadic error about NixOS not evaluating

Open ambroisie opened this issue 4 years ago • 3 comments

I have the following screenshot to showcase the problem:

why

On my laptop, nix-index bulds its database without any issues. However on my server it complains about experimental-features and then fails to evaluate the NixOS sources.

I have checked that I have the same version of nix and nix-index installed on both computers, and the same channels available (only nixos for the root user). In fact, I use the same flake configuration for both computers, so I am having trouble finding what could be causing the issue at this point.

ambroisie avatar Jun 04 '21 21:06 ambroisie

Is nix-daemon running on both machines and is theNIX_DAEMON env var equal? Also is ~/.config/nixpkgs/config.nix / ~/.nixpkgs/config.nix equal?

bennofs avatar Jun 06 '21 10:06 bennofs

Both computers have the nix daemon running, but NIX_DAEMON is not set.

Neither ~/.config/nixpkgs/ nor ~/.nixpkgs/ exist on both computers.

ambroisie avatar Jun 06 '21 10:06 ambroisie

Running nix-info -m showed the following line for my user, for some unknown reason:

 - channels(<me>): `""`

After running rm /nix/var/nix/profiles/per-user/<me>/channels*, nix-index started behaving correctly.

Still unsure why the channels situation ended up in this weird limbo state.

ambroisie avatar Aug 19 '21 14:08 ambroisie

Closing this, as it looks to be a local configuration issue.

bennofs avatar Jan 10 '23 16:01 bennofs