That doesn't seem to work as well for some reason
This commit is contained in:
parent
92f76492c3
commit
ace01f3391
|
@ -12,8 +12,16 @@ writeShellApplication
|
||||||
text = ''
|
text = ''
|
||||||
# A rebuild script for NixOS
|
# A rebuild script for NixOS
|
||||||
set -e
|
set -e
|
||||||
|
pushd /tmp > /dev/null
|
||||||
|
rm -rf ./rebuild
|
||||||
|
systemd-inhibit --what=idle git clone https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git ./rebuild
|
||||||
|
pushd ./rebuild > /dev/null
|
||||||
echo "NixOS Rebuilding..."
|
echo "NixOS Rebuilding..."
|
||||||
sudo systemd-inhibit --who="System Updater" --why="Updating System" nixos-rebuild switch --flake git+https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git#
|
systemd-inhibit --what=idle sudo nixos-rebuild switch --flake .#
|
||||||
|
popd > /dev/null
|
||||||
|
echo "Cleaning up repository in '/tmp/rebuild'..."
|
||||||
|
systemd-inhibit --what=idle rm -rf ./rebuild
|
||||||
|
popd > /dev/null
|
||||||
echo "NixOS Rebuilt OK!"
|
echo "NixOS Rebuilt OK!"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue