You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to upgrade a remote machine fails with the following output:
$ sudo nixos-rebuild switch --flake '/etc/nixos/#felix-rpi4' --target-host user@host --use-remote-sudo
building the system configuration...
warning: Git tree '/etc/nixos' is dirty
copying 141 paths...
copying path '/nix/store/05rrbmrxpfmb4pj5i9wj2h6q5kbklw3z-system-shutdown' to 'ssh://user@host'...
error: cannot add path '/nix/store/05rrbmrxpfmb4pj5i9wj2h6q5kbklw3z-system-shutdown' because it lacks a valid signature
error: unexpected end-of-file
Steps To Reproduce
See sample code above.
Expected behavior
Remote deployment should succeed.
Additional context
My build system is x86_64 and the target is aarch64. Both systems use flakes.
I've enabled cross-compilation on the build system via boot.binfmt.emulatedSystems = [ "aarch64-linux" ];.
Thus far I've updated the remote machine by itself, but the rebuilds are sometimes quite slow on it (raspberry pi 4). That's why I'd like to build it on my desktop computer which is much faster.
felschr
changed the title
nixos-rebuild with remote target fails due to lack of valid signature when using flakes
nixos-rebuild with remote target fails due to lack of valid signature
Feb 10, 2022
Describe the bug
Trying to upgrade a remote machine fails with the following output:
Steps To Reproduce
See sample code above.
Expected behavior
Remote deployment should succeed.
Additional context
My build system is
x86_64
and the target isaarch64
. Both systems use flakes.I've enabled cross-compilation on the build system via
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
.Thus far I've updated the remote machine by itself, but the rebuilds are sometimes quite slow on it (raspberry pi 4). That's why I'd like to build it on my desktop computer which is much faster.
Metadata
build system:
target system:
The text was updated successfully, but these errors were encountered: