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
|
#!/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
|
||||||
|
|
||||||
|
|
|
||||||
2
machines/lebesgue/flake.lock
generated
2
machines/lebesgue/flake.lock
generated
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue