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 #!/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 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

View file

@ -7,7 +7,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-o3CFNeEY0LvR1kOSCVC8nxPqL3TggTQ9PcWKdy+2l2A=", "narHash": "sha256-4RJQyq1PJVInDYTv3WfTig9BDilHndsygEHgIM4DJdY=",
"path": "../../nixos", "path": "../../nixos",
"type": "path" "type": "path"
}, },