I ran nix flake update
the other day to update my flakes
Since then I can’t rebuild my config and I get the following error
nix --version
nix (Nix) 2.28.1
sudo nixos-rebuild switch --flake .#brokkr
[sudo] password for river:
warning: Git tree '/home/river/dev/github.com/iainvm/nix' is dirty
error:
… while calling the 'seq' builtin
at /nix/store/5ds20jm3x2s4z7wn3581r6lc9ybmh45b-source/lib/modules.nix:359:18:
358| options = checked options;
359| config = checked (removeAttrs config [ "_module" ]);
| ^
360| _module = checked (config._module);
… while evaluating a branch condition
at /nix/store/5ds20jm3x2s4z7wn3581r6lc9ybmh45b-source/lib/modules.nix:295:9:
294| checkUnmatched =
295| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [ ] then
| ^
296| let
… while evaluating the module argument `pkgs' in "/nix/store/5ds20jm3x2s4z7wn3581r6lc9ybmh45b-source/nixos/modules/services/hardware/bluetooth.nix":
… while evaluating the option `nixpkgs.overlays':
… while evaluating definitions from `/nix/store/5ds20jm3x2s4z7wn3581r6lc9ybmh45b-source/flake.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: path '/nix/store/64lxq5kn85vglf3xhbh0zxjj8hin3m42-source/lib/flake.nix' does not exist
Even though it points to a bluetooth module I wrote, I think that’s a red herring, as it’s evaluating pkgs
I don’t know what /nix/store/64lxq5kn85vglf3xhbh0zxjj8hin3m42-source
is suppose to be the source of, since the directory doesn’t exist, so I don’t know why /nix/store/5ds20jm3x2s4z7wn3581r6lc9ybmh45b-source
(the nixpkgs [unstable]) would be pointing at it
Setting nixpkgs
back to nixos-24.05
gave the same error
Git checking out a previous commit before I updated gives the same error (though different store hashes)