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

error: cannot look up '<nixos-hardware/tuxedo/infinitybook/pro14/gen7>' in pure evaluation mode (use '--impure' to override) #8

Open
cig0 opened this issue May 2, 2024 · 0 comments

Comments

@cig0
Copy link

cig0 commented May 2, 2024

Hi all,

While following the tutorial "Ultimate NixOS Guide | Flakes | Home Manager", I stumbled upon that issue when trying to perform a system update, as instructed in the tutorial:
doas nixos-rebuild switch --flake /etc/nixos#default

As the error says, I'm importing a hardware module for my laptop:

  imports =
    [ # Include the results of the hardware scan.
      ./hardware-configuration.nix
      # Additional hardware settings
      <nixos-hardware/tuxedo/infinitybook/pro14/gen7>

In this case, this module is pretty simple, so I could directly import the kernel arguments into my configuration, but being new to NixOS, I'd gladly appreciate it if anyone could give me more context about:

  1. Why this action is failing
  2. What would be the right way to proceed (read: best practices)
  3. What would be the implications of enabling the --impure flag to allow the evaluation

Thanks!

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

No branches or pull requests

1 participant