aboutsummaryrefslogtreecommitdiff
path: root/bin/update
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-26 17:58:35 -0300
committerEuAndreh <eu@euandre.org>2023-02-26 17:58:35 -0300
commita55e0e40171baa3cca1194447cd43ce19002f5c5 (patch)
tree715a3cfc61822f655f6c8a8b55474f2b346dba26 /bin/update
parentbin/reconfigure: Use current version of {home,system}.scm files (diff)
downloaddotfiles-a55e0e40171baa3cca1194447cd43ce19002f5c5.tar.gz
dotfiles-a55e0e40171baa3cca1194447cd43ce19002f5c5.tar.xz
Update NixOS channel in update(1) instead of upgrade(1)
Diffstat (limited to 'bin/update')
-rwxr-xr-xbin/update6
1 files changed, 6 insertions, 0 deletions
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