deploy helper script now pipes to ./rebuild.log
This commit is contained in:
parent
0762e2fba6
commit
1b09aac8fc
1 changed files with 9 additions and 4 deletions
13
deploy
13
deploy
|
|
@ -20,13 +20,18 @@ collect_garbage () {
|
||||||
rebuild_flake () {
|
rebuild_flake () {
|
||||||
# make sure all changes are visible to nixos
|
# make sure all changes are visible to nixos
|
||||||
git add . --verbose
|
git add . --verbose
|
||||||
|
local FLAGS=
|
||||||
if [ "$1" = "reinstall-bootloader" ]; then
|
if [ "$1" = "reinstall-bootloader" ]; then
|
||||||
sudo nixos-rebuild switch --flake . --install-bootloader
|
FLAGS="$FLAGS --install-bootloader"
|
||||||
|
# sudo nixos-rebuild switch --flake . --install-bootloader
|
||||||
# STC_DISPLAY_ALL_UNITS=1 (verbose, show output of all units)
|
# STC_DISPLAY_ALL_UNITS=1 (verbose, show output of all units)
|
||||||
else
|
|
||||||
sudo nixos-rebuild switch --flake .
|
|
||||||
#nixos-rebuild build --flake .# --cores 8 -j 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# LOG="$(mktemp /tmp/rebuild-XXXXXXXX)"
|
||||||
|
LOG="./rebuild.log"
|
||||||
|
echo "[*] Deployment stdout(&1) directed to $LOG"
|
||||||
|
sudo nixos-rebuild switch --flake . "$FLAGS" & > >(tee $LOG)
|
||||||
|
#nixos-rebuild build --flake .# --cores 8 -j 1
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy_hive () {
|
deploy_hive () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue