diff options
author | EuAndreh <eu@euandre.org> | 2023-02-20 17:24:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-20 17:24:02 -0300 |
commit | 6f909ca6211264919050241eef5ad1e860327caa (patch) | |
tree | 3245b69e636412d17d1e56c092c015c1d509e0eb | |
parent | Use xss-lock, i3lock and loginctl to lock screen after 5 minutes in velhinho (diff) | |
download | dotfiles-6f909ca6211264919050241eef5ad1e860327caa.tar.gz dotfiles-6f909ca6211264919050241eef5ad1e860327caa.tar.xz |
bin/upgrade: Restrict upgrade to up-to 2 hours
-rwxr-xr-x | bin/upgrade | 5 |
1 files changed, 4 insertions, 1 deletions
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 | |