updated justfile

This commit is contained in:
Bryan Ramos 2024-05-13 15:41:07 -04:00
parent fb399f2db9
commit c58463a5d2
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8

View file

@ -34,20 +34,18 @@ test TYPE="nixos" SYSTEM="desktop":
# NixOS-rebuild switch short-hand # NixOS-rebuild switch short-hand
up SYSTEM="desktop": up SYSTEM="desktop":
@echo "Switching to next generation"
sudo nixos-rebuild switch --flake .#{{SYSTEM}} sudo nixos-rebuild switch --flake .#{{SYSTEM}}
# NixOS-rebuild boot short-hand # NixOS-rebuild boot short-hand
boot SYSTEM="desktop": boot SYSTEM="desktop":
@echo "Switching to next generation on reboot"
sudo nixos-rebuild boot --flake .#{{SYSTEM}} sudo nixos-rebuild boot --flake .#{{SYSTEM}}
# Commit all changes and push to upstream # Commit all changes and push to upstream
gh MESSAGE: gh MESSAGE:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
if [ -n "{{MESSAGE}}" ]; then git add -A
git add -A git commit -m "{{MESSAGE}}"
git commit -m "{{MESSAGE}}" git push
git push
else
echo "Error: Empty commit message"
fi