add check for shodan to not switch but instead just boot rebuild (and added just boot command), and added a check to see if pre-commit file is empty before adding the test hook for this repo

This commit is contained in:
Lillian Violet 2025-07-24 12:18:24 +02:00
parent 33f0eec366
commit 1114f237f6
2 changed files with 21 additions and 2 deletions

View file

@ -18,7 +18,11 @@ writeShellApplication
git clone https://codeberg.org/Lillian-Violet/NixOS-Config.git ./rebuild
pushd ./rebuild > /dev/null
echo "NixOS Rebuilding..."
just build
if ["''$HOSTNAME" = shodan]; then
just boot
else
just build
fi
popd > /dev/null
echo "Cleaning up repository in '/tmp/rebuild'..."
rm -rf ./rebuild