liminix-rebuild copy nix-store-paths to /persist

This commit is contained in:
Daniel Barlow 2023-05-20 21:55:37 +01:00
parent b0098f1c8e
commit ea2f48cfc9

View file

@ -11,5 +11,5 @@ fi
toplevel=$(nix-build "$@" -A outputs.systemConfiguration --no-out-link)
min-copy-closure $target_host $toplevel
$ssh_command $target_host cp -v -fP $toplevel/bin/* /persist
$ssh_command $target_host cp -v -fP $toplevel/bin/* $toplevel/etc/* /persist
$ssh_command $target_host "sync; source /etc/profile; reboot"