From a55e0e40171baa3cca1194447cd43ce19002f5c5 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 26 Feb 2023 17:58:35 -0300 Subject: Update NixOS channel in update(1) instead of upgrade(1) --- bin/update | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/update') 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 -- cgit v1.2.3