mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
updated justfile
This commit is contained in:
parent
fb399f2db9
commit
c58463a5d2
1 changed files with 5 additions and 7 deletions
12
justfile
12
justfile
|
|
@ -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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue