mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Nix] nice nixos-rebuild
This commit is contained in:
parent
ac42f2fa18
commit
a33825e370
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,8 @@ in
|
|||
exec ${config.systemd.package}/bin/systemd-inhibit --what=shutdown:sleep --mode=block \
|
||||
--who="NixOS rebuild" \
|
||||
--why="NixOS must finish rebuilding configuration or work would be lost." \
|
||||
-- ${nixos-rebuild}/bin/nixos-rebuild "$@"
|
||||
-- \
|
||||
${pkgs.coreutils}/bin/nice -n 19 -- ${nixos-rebuild}/bin/nixos-rebuild "$@"
|
||||
'';
|
||||
in mkOverride 20 nixos-rebuild-inhibit;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue