mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Nix/Builder] Don't inhibit explicit sleep when rebuilding, only block automatic idle behavior and shutdown
This commit is contained in:
parent
d7735e3454
commit
d1e6f1be18
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ in
|
|||
system.build.nixos-rebuild = let
|
||||
nixos-rebuild = pkgs.nixos-rebuild.override { nix = config.nix.package.out; };
|
||||
nixos-rebuild-inhibit = pkgs.writeShellScriptBin "nixos-rebuild" ''
|
||||
exec ${config.systemd.package}/bin/systemd-inhibit --what=shutdown:sleep --mode=block \
|
||||
exec ${config.systemd.package}/bin/systemd-inhibit --what=idle:shutdown --mode=block \
|
||||
--who="NixOS rebuild" \
|
||||
--why="NixOS must finish rebuilding configuration or work would be lost." \
|
||||
-- \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue