|
#!/usr/bin/env bash
|
|
|
|
if [ -z "$(git status --porcelain)" ]
|
|
then
|
|
git push --force-with-lease
|
|
sudo nixos-rebuild switch --flake "git+https://git.atauno.com/atau/nixos-config.git#nixos76"
|
|
else
|
|
echo "Git working directory is unclean, please commit changes"
|
|
exit 1
|
|
fi
|
|
|