NixOS-Config/pkgs/upgrade/default.nix

18 lines
284 B
Nix

{
lib,
stdenv,
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
'';
}