Let's just remove hostname shenanigans
This commit is contained in:
parent
db723b02d5
commit
e307bf4952
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue