From: Scott Worley Date: Mon, 20 Mar 2023 13:57:02 +0000 (-0700) Subject: Gentler updates (nice & ionice) X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/commitdiff_plain/c418324b4fa5ebf5046d623548e04e74d128f3d1?ds=sidebyside Gentler updates (nice & ionice) --- diff --git a/modules/auto-upgrade.nix b/modules/auto-upgrade.nix index e41716b..a80aa5c 100644 --- a/modules/auto-upgrade.nix +++ b/modules/auto-upgrade.nix @@ -65,6 +65,8 @@ let ''; auto-upgrade-script = pkgs.writeShellScript "auto-upgrade" '' + ${pkgs.coreutils}/bin/nice -n 17 \ + ${pkgs.util-linux}/bin/ionice -c 3 \ ${pkgs.util-linux}/bin/flock /run/auto-upgrade-with-pinch ${ pkgs.writeShellScript "auto-upgrade-with-lock-held" '' set -eo pipefail