23 lines
371 B
Bash
Executable File
23 lines
371 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
#git commit
|
|
|
|
git_status="$(git status)"
|
|
|
|
if $(echo "${git_status}" | grep "nothing to commit" &> /dev/null) ; then
|
|
echo "Nothing to commit."
|
|
|
|
else
|
|
echo "buuuhuuu"
|
|
|
|
fi
|
|
|
|
|
|
echo "Copying configurations to etc and rebuilding."
|
|
#sudo cp /home/adam/nixos-configurations/*.nix /etc/nixos/.
|
|
|
|
echo "Rebuilding os..."
|
|
#sudo nixos-rebuild switch
|