From a33825e370c32f41656470168a694a0d8941cf8b Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 13 Apr 2023 21:02:53 +0200 Subject: [PATCH] [Nix] nice nixos-rebuild --- nix/nix.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/nix.nix b/nix/nix.nix index 36162b6..437d6ba 100644 --- a/nix/nix.nix +++ b/nix/nix.nix @@ -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;