mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
updated justfile
This commit is contained in:
parent
fb399f2db9
commit
c58463a5d2
1 changed files with 5 additions and 7 deletions
6
justfile
6
justfile
|
|
@ -34,20 +34,18 @@ test TYPE="nixos" SYSTEM="desktop":
|
|||
|
||||
# NixOS-rebuild switch short-hand
|
||||
up SYSTEM="desktop":
|
||||
@echo "Switching to next generation"
|
||||
sudo nixos-rebuild switch --flake .#{{SYSTEM}}
|
||||
|
||||
# NixOS-rebuild boot short-hand
|
||||
boot SYSTEM="desktop":
|
||||
@echo "Switching to next generation on reboot"
|
||||
sudo nixos-rebuild boot --flake .#{{SYSTEM}}
|
||||
|
||||
# Commit all changes and push to upstream
|
||||
gh MESSAGE:
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
if [ -n "{{MESSAGE}}" ]; then
|
||||
git add -A
|
||||
git commit -m "{{MESSAGE}}"
|
||||
git push
|
||||
else
|
||||
echo "Error: Empty commit message"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue