NixOS-Config/pkgs/upgrade/default.nix

14 lines
262 B
Nix
Raw Permalink Normal View History

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