aboutsummaryrefslogtreecommitdiff
path: root/bin/update
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update')
-rwxr-xr-xbin/update9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/update b/bin/update
index dc8a84f..6e6effc 100755
--- a/bin/update
+++ b/bin/update
@@ -64,6 +64,15 @@ done
shift $((OPTIND - 1))
+HOSTNAME="$(hostname)"
+if [ -e /etc/nixos/configuration.nix ]; then
+ pass show "$HOSTNAME"/andreh |
+ head -n1 |
+ sudo -S nix-channel --update
+else
+ nix-channel --update
+fi
+
guix pull -v3
rfc -u