2024-10-28 00:17:05 +01:00
|
|
|
{writeShellApplication}:
|
2024-03-02 17:37:35 +01:00
|
|
|
writeShellApplication
|
|
|
|
{
|
|
|
|
name = "rebuild-no-inhibit";
|
|
|
|
|
|
|
|
runtimeInputs = [];
|
|
|
|
|
|
|
|
text = ''
|
|
|
|
# A rebuild script for NixOS
|
|
|
|
|
|
|
|
set -e
|
|
|
|
pushd /tmp > /dev/null
|
|
|
|
rm -rf ./rebuild
|
2024-05-06 15:55:51 +02:00
|
|
|
git clone https://codeberg.org/Lillian-Violet/NixOS-Config.git ./rebuild
|
2024-03-02 17:37:35 +01:00
|
|
|
pushd ./rebuild > /dev/null
|
|
|
|
echo "NixOS Rebuilding..."
|
|
|
|
sudo nixos-rebuild switch --flake .#
|
|
|
|
popd > /dev/null
|
|
|
|
echo "Cleaning up repository in '/tmp/rebuild'..."
|
|
|
|
rm -rf ./rebuild
|
|
|
|
popd > /dev/null
|
|
|
|
echo "NixOS Rebuilt OK!"
|
|
|
|
'';
|
|
|
|
}
|