aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/reconfigure2
-rwxr-xr-xbin/update6
2 files changed, 7 insertions, 1 deletions
diff --git a/bin/reconfigure b/bin/reconfigure
index 7876acf..de31785 100755
--- a/bin/reconfigure
+++ b/bin/reconfigure
@@ -78,5 +78,5 @@ timeout "$TWO_HOURS" \
if [ -e /etc/nixos/configuration.nix ]; then
pass show "$HOSTNAME"/andreh |
head -n1 |
- sudo -S nixos-rebuild switch --upgrade
+ sudo -S nixos-rebuild switch
fi
diff --git a/bin/update b/bin/update
index c3c7d4a..53f0aa0 100755
--- a/bin/update
+++ b/bin/update
@@ -63,6 +63,12 @@ done
shift $((OPTIND - 1))
+if [ -e /etc/nixos/configuration.nix ]; then
+ pass show "$HOSTNAME"/andreh |
+ head -n1 |
+ sudo -S nix-channel --update
+fi
+
guix pull -v3
rfc -u