Let's try only absolute paths then
This commit is contained in:
parent
81b88d4d05
commit
1878f7b449
|
@ -11,15 +11,12 @@ writeShellApplication
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
# A rebuild script for NixOS for use of the systemd service
|
# A rebuild script for NixOS for use of the systemd service
|
||||||
cd /tmp
|
systemd-inhibit rm -rf /tmp/rebuild
|
||||||
rm -rf ./rebuild
|
systemd-inhibit git clone https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git /tmp/rebuild
|
||||||
systemd-inhibit git clone https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git ./rebuild
|
systemd-inhibit echo "NixOS Rebuilding..."
|
||||||
cd ./rebuild
|
systemd-inhibit nixos-rebuild switch --flake /tmp/rebuild/#
|
||||||
echo "NixOS Rebuilding..."
|
systemd-inhibit echo "Cleaning up repository in '/tmp/rebuild'..."
|
||||||
systemd-inhibit nixos-rebuild switch --flake .#
|
systemd-inhibit rm -rf /tmp/rebuild
|
||||||
echo "Cleaning up repository in '/tmp/rebuild'..."
|
systemd-inhibit echo "NixOS Rebuilt OK!"
|
||||||
cd ..
|
|
||||||
systemd-inhibit rm -rf ./rebuild
|
|
||||||
echo "NixOS Rebuilt OK!"
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue