]> git.scottworley.com Git - auto-upgrade-with-pinch/commitdiff
Gentler updates (nice & ionice)
authorScott Worley <scottworley@scottworley.com>
Mon, 20 Mar 2023 13:57:02 +0000 (06:57 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 20 Mar 2023 13:57:02 +0000 (06:57 -0700)
modules/auto-upgrade.nix

index e41716b4387af0c8b91dbef3ff753d8701613435..a80aa5cdf56fe51ebdfedee0bdcf5e0f4ab3c608 100644 (file)
@@ -65,6 +65,8 @@ let
   '';
 
   auto-upgrade-script = pkgs.writeShellScript "auto-upgrade" ''
   '';
 
   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
     ${pkgs.util-linux}/bin/flock /run/auto-upgrade-with-pinch ${
       pkgs.writeShellScript "auto-upgrade-with-lock-held" ''
         set -eo pipefail