aboutsummaryrefslogtreecommitdiff
path: root/bin/update
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-04-25 15:55:54 -0300
committerEuAndreh <eu@euandre.org>2024-04-25 15:55:54 -0300
commit0b720343053dd0f67faa53698ebe748fbeddc6b3 (patch)
treecd6faedf9acf2c82405483f9f728079a33ea978e /bin/update
parentetc/sh/rc: export $TD_USE_BUILTIN_HOOKS (diff)
downloaddotfiles-0b720343053dd0f67faa53698ebe748fbeddc6b3.tar.gz
dotfiles-0b720343053dd0f67faa53698ebe748fbeddc6b3.tar.xz
Revert "Remove Nix/NixOS support from configuration and utilities"
This reverts commit 3b2d27457db9ef8911893fa1b843560f1ccab2eb.
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