2024-03-12 14:42:33 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
writeShellApplication,
|
|
|
|
}:
|
|
|
|
writeShellApplication
|
|
|
|
{
|
2024-03-12 14:48:03 +01:00
|
|
|
name = "upgrade";
|
2024-03-12 14:42:33 +01:00
|
|
|
|
|
|
|
runtimeInputs = [];
|
|
|
|
|
|
|
|
text = ''
|
|
|
|
# An upgrade script for nixos
|
|
|
|
sudo systemd-inhibit --who="NixOS Updater" --why="Updating flake lock" update
|
|
|
|
sudo systemd-inhibit --who="NixOS Updater" --why="Updating system configuration" rebuild-no-inhibit
|
|
|
|
'';
|
|
|
|
}
|