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

NAR hash mismatch in input #24

Open
happysalada opened this issue Jun 25, 2022 · 3 comments
Open

NAR hash mismatch in input #24

happysalada opened this issue Jun 25, 2022 · 3 comments

Comments

@happysalada
Copy link

happysalada commented Jun 25, 2022

here is the full log

🤞 Activating configuration non-hermetically on bee via ssh
+ /nix/store/85fcpkyv8qg4kpnv0p2nql2k7qp6q4ab-openssh-9.0p1/bin/ssh -t [email protected] 'sudo nixos-rebuild switch --flake /nix/store/ln57g0jd3pqmdwfkb8vmca17hcfm4awv-source#bee'
[sudo] password for yt:
error: NAR hash mismatch in input 'github:nixos/nixpkgs/72d1b0d0fac131df1ea254b65413c85609bdd2ee' (/nix/store/3jvygw6vzsazkfhxcd66w9gcg7y91c3k-source), expected 'sha256-dLqquYHvj6/EYPljULXJVUKcizB/8cbgdIL7aEXTDZY=', got 'sha256-g5Wo75ddDQmWnL70rJCMm+JJlvHbzPFUePUpuMNn5qk='
(use '--show-trace' to show detailed location information)

just started getting this today, no idea why.
I'm executing from a darwin machine to build a nix machine.
I'm not using the hermetic feature. I'm building on "remote" of course.
Not sure where this is coming from.

@MatthewCroughan
Copy link
Owner

Is your full source code and flake that you're trying to work with available on Github anywhere?

@happysalada
Copy link
Author

yes it is. I'm trying to build bee https://github.com/happysalada/dotfiles/blob/master/flake.nix#L68
by running nix run .#apps.nixinate.bee
you might just need to change the ip and ssh user and you should be fine.
(l think all files are checked by git).

@happysalada
Copy link
Author

I thought originally that it was because the nix version was different on both machines and so those were computing the NAR differently. I verified since then that the nix version is the same on both machine.
I'm wondering if it would be a darwin vs nixos thing.
It feels like it has nothing to do with nixinate.

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

2 participants