No longer able to build

When trying to run sudo nixos rebuild --switch --impure , I’m getting the following. How can I track the source of the error from this? I don’t know how to track down where the source of the problem is to troubleshoot.

error:
       … while calling the 'seq' builtin
         at /nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

       … while evaluating a branch condition
         at /nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source/lib/modules.nix:273:9:
          272|       checkUnmatched =
          273|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
             |         ^
          274|           let

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

       error: path '/nix/store/na7sykizsgkzh9i3wc8m8pz5xfqib2rv-source/flake.nix' does not exist

I’m on channel 24.11 and am using flake.nix and home manager. I did try look at the --show-trace details, but even so, nothing helpful that I understand to track down source of problem.

you forgot to git-add your files, probably. and stop using --impure.

1 Like

My configuration wasn’t the problem it seems. Once I did a re-install of OS, copied my same config down and built no problem. Don’t know what that was about. Thanks to declarative installation, back up and running in no time at all.