more expressive
This commit is contained in:
parent
07c1c0f9c8
commit
5ee1c7eddb
1 changed files with 3 additions and 0 deletions
3
nswitch
3
nswitch
|
@ -41,12 +41,15 @@ if ! [[ "${YESNO,,}" == "y" ]]; then
|
|||
exit_with_new_shell
|
||||
fi
|
||||
|
||||
printf ">>> Add everything to git staging so nix can find it\n"
|
||||
git add "$GIT_PATTERN"
|
||||
|
||||
printf ">>> Rebuilding NixOS\n"
|
||||
sudo nixos-rebuild switch | tee nixos-switch.log || (
|
||||
grep --color error nixos-switch.log && false)
|
||||
gen=$(nixos-rebuild list-generations | grep current)
|
||||
|
||||
printf ">>> commiting to git\n"
|
||||
git commit -am "$gen"
|
||||
|
||||
exit_with_new_shell
|
||||
|
|
Loading…
Add table
Reference in a new issue