Fix pianopi deploy script
This commit is contained in:
parent
820574addf
commit
f35b2e8304
@ -15,10 +15,18 @@ pkgs.writeShellApplication {
|
||||
runtimeInputs = with pkgs; [ rsync ];
|
||||
|
||||
text = ''
|
||||
set -x
|
||||
set -e
|
||||
set -x
|
||||
|
||||
nix build .#defaultPackage.aarch64-linux
|
||||
rsync -a result/bin/ julian@pianopi.local:/home/julian/.local/bin
|
||||
nix build .#defaultPackage.aarch64-linux --print-out-paths
|
||||
# copy dependencies etc
|
||||
nix copy --to ssh://julian@pianopi.local .#defaultPackage.aarch64-linux
|
||||
|
||||
# This should be expanded on the client side
|
||||
# shellcheck disable=SC2029
|
||||
# ssh julian@pianopi.local ln -sf "$DERIVATION_PATH"/bin/\* /home/julian/.local/bin
|
||||
# ssh julian@pianopi.local nix profile install "$DERIVATION_PATH"
|
||||
|
||||
rsync -ac result/bin/ julian@pianopi.local:/home/julian/.local/bin
|
||||
'';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user