add switch_remote.sh script and update docs accordingly
This commit is contained in:
parent
ce97b624e0
commit
fcb5b203c7
2 changed files with 24 additions and 1 deletions
14
switch_remote.sh
Executable file
14
switch_remote.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#/usr/bin/env bash
|
||||
# a small script for calling nixos-rebuild switch on a remote host but with less repitition
|
||||
set -euo pipefail
|
||||
|
||||
ACTION=$1
|
||||
HOST=$2
|
||||
|
||||
exec nixos-rebuild $ACTION \
|
||||
--use-substitutes \
|
||||
--no-build-nix \
|
||||
--use-remote-sudo \
|
||||
--build-host "$HOST" \
|
||||
--target-host "$HOST" \
|
||||
--flake ".#$HOST" \
|
Loading…
Add table
Add a link
Reference in a new issue