From 0b720343053dd0f67faa53698ebe748fbeddc6b3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 25 Apr 2024 15:55:54 -0300 Subject: Revert "Remove Nix/NixOS support from configuration and utilities" This reverts commit 3b2d27457db9ef8911893fa1b843560f1ccab2eb. --- bin/update | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bin/update') 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 -- cgit v1.2.3