From 6f909ca6211264919050241eef5ad1e860327caa Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 20 Feb 2023 17:24:02 -0300 Subject: bin/upgrade: Restrict upgrade to up-to 2 hours --- bin/upgrade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/upgrade b/bin/upgrade index ba4fcc8..daae53a 100755 --- a/bin/upgrade +++ b/bin/upgrade @@ -70,7 +70,10 @@ if [ -e /run/current-system/configuration.scm ]; then sudo -ES guix system -v3 reconfigure /run/current-system/configuration.scm fi -guix home -v3 reconfigure ~/.guix-home/configuration.scm +TWO_HOURS='7200' + +timeout "$TWO_HOURS" -- + guix home -v3 reconfigure ~/.guix-home/configuration.scm if [ -e /etc/nixos/configuration.nix ]; then pass show "$HOSTNAME"/andreh | -- cgit v1.2.3