From c418324b4fa5ebf5046d623548e04e74d128f3d1 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 20 Mar 2023 06:57:02 -0700 Subject: [PATCH] Gentler updates (nice & ionice) --- modules/auto-upgrade.nix | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.44.1