NixOS-Config/pkgs/upgrade/default.nix

14 lines
262 B
Nix

{writeShellApplication}:
writeShellApplication
{
name = "upgrade";
runtimeInputs = [];
text = ''
# An upgrade script for nixos
update
sudo systemd-inhibit --who="NixOS Updater" --why="Updating system configuration" rebuild-no-inhibit
'';
}