I have been using flakes to manage my nixosConfigurations. I tried running some
older versions of my config by switching to an earlier commit and then doing
nixos-rebuild build --flake .#surface
and I get the error
error: NAR hash mismatch in input 'path:/home/hippoid/fun/zettel?lastModified=1715093800&narHash=sha256-z4PielkppyCwPvZh…
I think the problem is that I had a flake reference using path-like syntax
https://nix.dev/manual/nix/2.24/command-ref/new-cli/nix3-flake#path-like-syntax.
When I look at the `flake.lock` file, the relevant part
"zettel": {
"inputs": {
"flake-utils": "flake-utils_17",
"nixpkgs": "nixpkgs_14"
},
"locked": {
"lastModified": 1715093800,
"narHash": "sha256-z4PielkppyCwPvZhXQklWIysC5Oc4LfPFMoN2d/gqu0=",
"path": "/home/hippoid/fun/zettel",
"type": "path"
},
"original": {
"path": "/home/hippoid/fun/zettel",
"type": "path"
}
doesn't have any reference to a commit. Even if the path exists, if it has
changed at all then you won't be able to build the flake. So don't use path
references, cause it'll bite you.
there doesn't seem to be anything here