Update lebesgue deployment script.

This commit is contained in:
Lorenzo Good 2025-02-04 17:20:30 -06:00
parent 67585b7c15
commit 3917e40b53
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
2 changed files with 11 additions and 2 deletions

View file

@ -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