Error: cached failure of attribute ''


Just did a:

nix flake update
sudo nixos-rebuild switch --flake .#

and got this error:

error: cached failure of attribute ''

I am running nixos unstable.

try this Nix flakes should not cache evaluation errors · Issue #3872 · NixOS/nix · GitHub and you can find out what’s going wrong (pass --no-eval-cache or --option eval-cache false flag)



Here’s the error:

       Failed assertions:
       - Importing framework/ (default.nix) directly is deprecated! See for more details.

The link gives a 404…

the link is fixed here and has been merged: Fixed broken links in deprecation assertions for framework and surface modules by naufik · Pull Request #779 · NixOS/nixos-hardware · GitHub

posting here also:

1 Like

Thanks. That worked. I didn’t think it was referring to my ‘Framework’ laptop. It is a dumb name because of confusion like this.