infinisil / sanix

Sane stable stateless NixOS setup
47 stars 1 forks source link

Install on unstable NixOS breaks nix-shell #3

Open cboecking opened 2 months ago

cboecking commented 2 months ago

Issue: unable to use nix-shell after rebuild switch from unstable nixos. I do not know if this is an issue; however, wanted to report it just in case.

Details:

[root@nixos:~]# nix-shell -p git warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring

error: / borked

     at «none»:0: (source not available)

   / while calling the 'import' builtin

     at «string»:1:18:

        1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (git) ]; } ""
         |                  ^

   (stack trace truncated; use '--show-trace' to show the full trace)

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

   at «none»:0: (source not available)

::end error

The same process works as expected on 23.11 instance.

infinisil commented 2 weeks ago

Sorry for the late response. Did you log out and back in again?