NixOS-Config/pkgs/rebuild/default.nix

17 lines
272 B
Nix
Raw Permalink Normal View History

2024-02-26 14:17:34 +01:00
{
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
2024-02-26 14:17:34 +01:00
'';
}