2024-02-26 14:17:34 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
writeShellApplication,
|
|
|
|
}:
|
|
|
|
writeShellApplication
|
|
|
|
{
|
|
|
|
name = "rebuild";
|
|
|
|
|
|
|
|
runtimeInputs = [];
|
|
|
|
|
|
|
|
text = ''
|
|
|
|
# A rebuild script for NixOS
|
|
|
|
set -e
|
|
|
|
echo "NixOS Rebuilding..."
|
2024-03-01 16:00:23 +01:00
|
|
|
sudo systemd-inhibit --who="System Updater" why="Updating System" nixos-rebuild switch --flake git+https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git#
|
2024-03-01 15:10:51 +01:00
|
|
|
echo "NixOS Rebuilt OK!"
|
2024-02-26 14:17:34 +01:00
|
|
|
'';
|
|
|
|
}
|