deploy script in shell

This commit is contained in:
Andrea Ciceri 2023-04-02 16:16:29 +02:00
parent 3008a49eee
commit 477bef81a5
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
4 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,6 @@
host=${1-mothership}
nixos-rebuild switch \
--flake ".#${host}" \
--target-host "root@${host}.fleet" \
"${@:2}"