Let's just remove hostname shenanigans
This commit is contained in:
parent
db723b02d5
commit
e307bf4952
|
@ -14,10 +14,9 @@ writeShellApplication
|
||||||
set -e
|
set -e
|
||||||
pushd /tmp
|
pushd /tmp
|
||||||
git clone forgejo@git.lillianviolet.dev:Lillian-Violet/NixOS-Config.git ./rebuild
|
git clone forgejo@git.lillianviolet.dev:Lillian-Violet/NixOS-Config.git ./rebuild
|
||||||
hostname=$(hostname)
|
|
||||||
pushd ./rebuild
|
pushd ./rebuild
|
||||||
echo "NixOS Rebuilding..."
|
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
|
popd
|
||||||
echo "Cleaning up repository in tmp..."
|
echo "Cleaning up repository in tmp..."
|
||||||
rm -rf ./rebuild
|
rm -rf ./rebuild
|
||||||
|
|
Loading…
Reference in a new issue