Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I) #348970

Open
prehonor opened this issue Oct 16, 2024 · 0 comments

Comments

@prehonor
Copy link

prehonor commented Oct 16, 2024

Describe the bug

   … while calling anonymous lambda
     at /etc/nixos/overlays-compat/overlays.nix:6:7:
        5|
        6| self: super:
         |       ^
        7| with super.lib;

   … while calling the 'foldl'' builtin
     at /etc/nixos/overlays-compat/overlays.nix:13:3:
       12|   # Apply all overlays to the input of the current "main" overlay
       13|   foldl' (flip extends) (_: super) overlays self    # 也可用
         |   ^
       14|

   … while calling the 'import' builtin
     at /etc/nixos/overlays-compat/overlays.nix:10:15:
        9|   # Load the system config and get the `nixpkgs.overlays` option
       10|   overlays = (import <nixpkgs/nixos> { }).config.nixpkgs.overlays; # nixpkgs/nixos
         |               ^
       11| in

   … while realising the context of a path

   … while calling the 'findFile' builtin
     at /etc/nixos/overlays-compat/overlays.nix:10:22:
        9|   # Load the system config and get the `nixpkgs.overlays` option
       10|   overlays = (import <nixpkgs/nixos> { }).config.nixpkgs.overlays; # nixpkgs/nixos
         |                      ^
       11| in

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

Steps To Reproduce

follow by https://nixos.wiki/wiki/Overlays Section Applying overlays automatically :On the system level
sudo nixos-rebuild switch --flake '/etc/nixos#prehonor' --impure --show-trace

Expected behavior

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

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
  • system: "x86_64-linux"
  • host os: Linux 6.6.56, NixOS, 24.11 (Vicuna), 24.11.20241014.a3c0b3b
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.9
  • channels(root): ""
  • nixpkgs: /home/prehonor/.nix-defexpr/channels/nixpkgs

Add a 👍 reaction to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant