17 lines
273 B
Nix
17 lines
273 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
writeShellApplication,
|
|
}:
|
|
writeShellApplication
|
|
{
|
|
name = "rebuild";
|
|
|
|
runtimeInputs = [];
|
|
|
|
text = ''
|
|
# A rebuild script for NixOS
|
|
sudo systemd-inhibit --who="NixOS Updater" --why="Updating system configuration" rebuild-no-inhibit"
|
|
'';
|
|
}
|