Let's just remove hostname shenanigans

This commit is contained in:
Lillian Violet 2024-02-26 14:20:13 +01:00
parent db723b02d5
commit e307bf4952

View file

@ -14,10 +14,9 @@ writeShellApplication
set -e
pushd /tmp
git clone forgejo@git.lillianviolet.dev:Lillian-Violet/NixOS-Config.git ./rebuild
hostname=$(hostname)
pushd ./rebuild
echo "NixOS Rebuilding..."
sudo nixos-rebuild switch --flake #$hostname &>nixos-switch.log || (cat nixos-switch.log | grep --color error && false)
sudo nixos-rebuild switch --flake .# &>nixos-switch.log || (cat nixos-switch.log | grep --color error && false)
popd
echo "Cleaning up repository in tmp..."
rm -rf ./rebuild