Update lebesgue deployment script.
This commit is contained in:
parent
67585b7c15
commit
3917e40b53
2 changed files with 11 additions and 2 deletions
|
|
@ -1,5 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
function deploy() {
|
||||
nixos-rebuild $1 --flake .#default --target-host admin@lebesgue --use-remote-sudo --build-host localhost --verbose
|
||||
}
|
||||
|
||||
nix flake lock --update-input common
|
||||
|
||||
nixos-rebuild switch --flake .#default --target-host admin@lebesgue --use-remote-sudo --build-host localhost --verbose
|
||||
if [[ -n $1 ]]; then
|
||||
deploy $1
|
||||
else
|
||||
deploy "switch"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue